list.html 738 B

12345678910111213141516171819
  1. {% extends "admin/admin/list.html" %}
  2. {% load i18n %}
  3. {% load l10n %}
  4. {% load url from future %}
  5. {% import "_forms.html" as form_theme with context %}
  6. {% block table_head scoped %}
  7. {{ super() }}
  8. <th>{% trans %}Order{% endtrans %}</th>
  9. {% endblock %}
  10. {% block table_row scoped %}
  11. <td class="lead-cell">
  12. <strong>{{ item.name }}</strong>{% if item.special %} <span class="label label-info">{% trans %}Special{% endtrans %}</span>{% endif %}{% if item.as_tab %} <span class="label label-inverse">{% trans %}Tab{% endtrans %}</span>{% endif %}
  13. </td>
  14. <td class="span2">
  15. {{ form_theme.field_widget(table_form['pos_' + item.pk|string], attrs={'class': 'span2', 'form': 'table_form'}) }}
  16. </td>
  17. {% endblock%}