1. Jannis Leidel
  2. django-lfs

Source

django-lfs / lfs / templates / manage / shipping / shipping_method_criteria.html

{% load i18n %}

<h2>{% trans 'Criteria' %}</h2>

<form action="{% url lfs_manage_save_shipping_method_criteria shipping_method.id %}"
      method="post">

    <div class="top-buttons">
        <a class="criterion-add-first-button"
           href="{% url lfs_add_criterion %}">
            <img class="icon-padding" 
                 src="{{ STATIC_URL }}/lfs/icons/add.png"
                 alt="{% trans 'Add' %}" />
            
            {% trans 'Add criterion' %}
        </a>
    </div>

    <table class="criteria">
        {% for criterion in criteria %}
            {{criterion|safe}}
        {% endfor %}
    </table>  

    <div class="manage-form-buttons">
        <input class="criterion-save-button" 
               type="submit" 
               value="{% trans 'Save criteria' %}" />
    </div>

</form>