Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix attribute detail view template

Krzysztof Białogłowicz82a356d3885c
diff --git a/templates/dashboard/product/product_attribute/detail.html b/templates/dashboard/product/product_attribute/detail.html
index 09bb6c0cdc..0d9748ad35 100644
--- a/templates/dashboard/product/product_attribute/detail.html
+++ b/templates/dashboard/product/product_attribute/detail.html
@@ -11,26 +11,6 @@
{% block menu_attributes_class %}active{% endblock %}
-{% block header_extra %}
- <a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
- </a>
- <ul id="attribute-delete" class="dropdown-content">
- <li>
- <a href="{% url "dashboard:product-attribute-update" attribute.pk %}">
- {% trans "Edit attribute" context "Attribute detail action" %}
- </a>
- </li>
- <li>
- <a class="modal-trigger-custom" href="#base-modal"
- data-href="{% url 'dashboard:product-attribute-delete' pk=attribute.pk %}">
- {% trans "Remove attribute" context "Attribute detail action" %}
- </a>
- </li>
- </ul>
-{% endblock %}
-
-
{% block breadcrumbs %}
<ul class="breadcrumbs breadcrumbs--history">
<li>
@@ -54,36 +34,30 @@
{% block menu_catalogue_class %} active{% endblock %}
{% block content %}
+
<div class="row">
<div class="col m12 l9">
<div class="card">
<div class="card-content">
<span class="card-title">
- {% trans "Attribute detail" context "Attribute detail title" %}
+ {{ attribute.name }}
</span>
- <div class="row">
- <div class="col s12 l9">
- <h5>
- {% trans "Display name" context "Attribute field" %}
- </h5>
- <p>
- {{ attribute.name }}
- </p>
- </div>
- <div class="col s12 l9">
- <h5>
- {% trans "Internal name" context "Attribute field" %}
- </h5>
- </div>
- </div>
+ </div>
+ <div class="card-action">
+ <a class="btn btn-flat" href="{% url "dashboard:product-attribute-update" attribute.pk %}">
+ {% trans "Edit attribute" context "Attribute detail action" %}
+ </a>
+ <a class="btn btn-flat modal-trigger-custom" href="#base-modal"
+ data-href="{% url 'dashboard:product-attribute-delete' pk=attribute.pk %}">
+ {% trans "Remove attribute" context "Attribute detail action" %}
+ </a>
</div>
</div>
- </div>
-
+ </div>
<div class="col m12 l9">
<div class="card">
- <div class="data-table-header">
- <h5 class="data-table-title">{% trans "Attribute values" %}</h5>
+ <div class="card-content">
+ <span class="card-title">{% trans "Attribute values" %}</span>
</div>
<div class="data-table-container">
<table class="bordered highlight responsive data-table">