Skip to content

Commit

Permalink
Correct markup
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Dec 5, 2017
1 parent c58aeaa commit 2c88412
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
19 changes: 11 additions & 8 deletions templates/dashboard/discount/sale/list.html
Expand Up @@ -23,15 +23,18 @@

{% block menu_discounts_class %} active{% endblock %}

{% block content %}
{% block header_extra %}
{% if perms.discount.edit_sale %}
<div class="btn-fab-fixed">
<a href="{% url 'dashboard:sale-add' %}" class="btn-fab-default waves-effect waves-light"
title="{% trans "Add sale" context "Sale (discount) list add button text" %}">
<svg data-src="{% static "dashboard/images/add.svg" %}" />
</a>
</div>
{% endif %}
<div class="btn-fab-fixed">
<a href="{% url 'dashboard:sale-add' %}" class="btn-fab-default waves-effect waves-light"
title="{% trans "Add sale" context "Sale (discount) list add button text" %}">
<svg data-src="{% static "dashboard/images/add.svg" %}" />
</a>
</div>
{% endif %}
{% endblock %}

{% block content %}
<div class="row">
<div class="col s12 l9">
<div class="card">
Expand Down
5 changes: 4 additions & 1 deletion templates/dashboard/discount/voucher/list.html
Expand Up @@ -24,7 +24,7 @@

{% block menu_discounts_class %} active{% endblock %}

{% block content %}
{% block header_extra %}
{% if perms.discount.edit_voucher %}
<div class="btn-fab-fixed">
<a href="{% url 'dashboard:voucher-add' %}" class="btn-fab-default waves-effect waves-light"
Expand All @@ -33,6 +33,9 @@
</a>
</div>
{% endif %}
{% endblock %}

{% block content %}
<div class="row">
<div class="col s12 l9">
<div class="card">
Expand Down
5 changes: 0 additions & 5 deletions templates/dashboard/product/product_image/list.html
Expand Up @@ -123,9 +123,4 @@
</li>
</script>
</div>
<div class="btn-fab-fixed">
<a class="btn-fab-default waves-effect waves-light" id="images-btn" href="{% url 'dashboard:product-image-add' product_pk=product.pk %}" title="{% trans "Add image" context "Add image button text" %}">
<svg data-src="{% static "dashboard/images/add.svg" %}" />
</a>
</div>
{% endblock %}
5 changes: 4 additions & 1 deletion templates/dashboard/shipping/list.html
Expand Up @@ -22,7 +22,7 @@
</ul>
{% endblock %}

{% block content %}
{% block header_extra %}
{% if perms.shipping.edit_shipping %}
<div class="btn-fab-fixed">
<a href="{% url 'dashboard:shipping-method-add' %}"
Expand All @@ -32,6 +32,9 @@
</a>
</div>
{% endif %}
{% endblock %}

{% block content %}
<div class="row">
<div class="col s12 l9">
{% if shipping_methods %}
Expand Down

0 comments on commit 2c88412

Please sign in to comment.