Source

django-lfs / lfs / templates / manage / criteria / payment_method_criterion.html

{% load i18n %}
<tr class="criterion" id="criterion-{{ id }}">    
    <td>
        <input type="text" size="2" class="position" name="position-{{ id }}" value="{{ position }}" />
    </td>
    <td>
        <select class="criterion-type" name="type-{{ id }}">
            <option value="country">{% trans 'Country' %}</option>
            <option value="combinedlengthandgirth">{% trans 'Combined length and girth' %}</option>
            <option value="distance">{% trans 'Distance' %}</option>
            <option value="height">{% trans 'Height' %}</option>
            <option value="length">{% trans 'Length' %}</option>
            <option value="payment_method" selected="selected">{% trans 'Payment method' %}</option>
            <option value="price">{% trans 'Price' %}</option>
            <option value="shipping_method">{% trans 'Shipping method' %}</option>
            <option value="width">{% trans 'Width' %}</option>
            <option value="weight">{% trans 'Weight' %}</option>
        </select>
    </td>
    <td>
        {% include "manage/criteria/selection_operators.html" %}
    </td>
    <td>
        <select name="value-{{ id }}"
                multiple="multiple"
                size="5">
            {% for pm in payment_methods %}
                <option value="{{ pm.id }}" {% if pm.selected %}selected="selected"{% endif %}>{{ pm.name }}</option>
            {% endfor %}    
        </select>
    </td>
    <td>
        <a class="criterion-add-button"
           href="{% url lfs_add_criterion %}">
            <img src="{{ STATIC_URL }}lfs/icons/add.png"
                 alt="Add" />
        </a>
        <a class="criterion-delete-button">
            <img src="{{ STATIC_URL }}lfs/icons/delete.png"
                 alt="Delete" />        
        </a>
    </td>
</tr>