list.html 761 B

12345678910111213141516
  1. {% extends "admin/admin/list.html" %}
  2. {% import "forms.html" as form_theme with context %}
  3. {% block table_head scoped %}
  4. {{ super() }}
  5. <th>{% trans %}Order{% endtrans %}</th>
  6. {% endblock %}
  7. {% block table_row scoped %}
  8. <td class="lead-cell">
  9. <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 %}{% if item.on_index %} <span class="label label-orange">{% trans %}On Index{% endtrans %}</span>{% endif %}
  10. </td>
  11. <td class="span2">
  12. {{ form_theme.field(table_form['pos_' + item.pk|string], attrs={'form': 'table_form', 'class': 'span2'}) }}
  13. </td>
  14. {% endblock%}