Source

django-lfs / lfs / templates / manage / shipping_methods / shipping_method_prices.html

{% load i18n %}

<h2>{% trans 'Prices' %}</h2>
<form action="{% url lfs_manage_add_shipping_price shipping_method.id %}"
      method="post">
    <input type="text" name="price" />
    <input class="ajax-save-button button"
           type="submit"
           value="{% trans 'Add price' %}" />
</form>

{% if prices %}
    <h2 class="heading-middle">{% trans 'Existing prices' %}</h2>
    <form action="{% url lfs_manage_update_shipping_prices shipping_method.id %}"
          method="post">
        <table class="criteria">
            <tr>
                <th>
                    <input type="checkbox"
                           class="select-all"
                           value="prices" />
                </th>
                <th>
                    {% trans 'Priority' %}
                </th>
                <th>
                    {% trans 'Price' %}
                </th>
            </tr>
            {% for price in prices  %}
            <tr>
                <td>
                    <input type="checkbox" name="delete-{{ price.id }}" class="select-prices" />
                </td>
                <td>
                    <input type="text" size="5" name="priority-{{ price.id }}" value="{{ price.priority }}" />
                </td>
                <td>
                    <div>
                        <input type="text" name="price-{{ price.id }}" value="{{ price.price }}" />
                        <a href="{% url lfs_manage_shipping_price_criteria price.id %}"
                           class="ajax-link">
                           {% trans 'Edit criteria' %}
                        </a>
                    </div>
                    {% for criterion in price.get_criteria %}
                        <div style="padding-left:3px">
                            {{ criterion }}
                        </div>
                    {% endfor %}
                </td>
            </tr>
            {% endfor %}
            <tr>
                <td></td>
                <td colspan="2">
                    <div class="buttons">
                        <input class="ajax-save-button button" type="submit" name="delete" value="{% trans 'Delete prices' %}" />
                        <input class="ajax-save-button button" type="submit" name="update" value="{% trans 'Update prices' %}" />
                    </div>
                </td>
            </tr>

        </table>
    </form>
{% endif %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.