{% extends "admin/admin/layout.html" %} {% import "forms.html" as form_theme with context %} {% block action_body %} {%- if search_form %}
{% endif -%} {% if items|length > 0 -%} {% block table_head scoped %}{% for column in action.columns %} {%- if column[0] in sorting %}{{ column[1] }}{% else %}{{ column[1] }}{% endif %}{% endfor %}{% endblock %} {% if not action.hide_actions%}{% endif -%} {% if list_form %}{% endif -%} {% for item in items %} {% block table_row scoped %}{% for column in action.columns %} {{ item[column[0]] }}{% endfor %}{% endblock %} {%- if not action.hide_actions%} {% endif %} {% if list_form %}{% endif %} {% endfor %}
{% trans %}Actions{% endtrans %}
{%- set item_actions = action.get_item_actions(item) -%} {% if item_actions -%}
    {% for action in item_actions %}
  • {% if action.post -%}
    {%- else -%} {%- endif %}
  • {% endfor %}
{%- else -%} {% trans %}Not available{% endtrans %} {%- endif %}
{%- else -%}

{% if action.is_filtering %}{{ action.empty_search_message }}{% else %}{{ action.empty_message }}{% endif %}

{% endif -%} {%- if search_form %}
{% if action.is_filtering %}
{% endif %}{% endif -%} {% endblock %} {% block javascripts -%} {{ super() }} {%- if list_form %} {% endif %} {%- endblock %} {#- COLUMN CLASS -#} {%- macro th_class(column, sorting, sorting_method) -%} {%- if column[2] or column[0] in sorting %} class=" {#- COLUMN WIDTH (ex. "span4") -#} {%- if column[2] %}span{{ widthratio(column[2], 100, 12) }}{% endif -%} {#- SEPARATOR -#} {%- if column[2] and column[0] in sorting %} {% endif -%} {#- COLUMN SORTING -#} {%- if column[0] in sorting -%}table-sort sort- {%- if column[0] == sorting_method[0] -%} active-{% if sorting_method[1] %}asc{% else %}desc{% endif -%} {%- else -%} {%- if sorting[column[0]] -%}asc{% else %}desc{% endif -%} {%- endif -%} {%- endif -%} "{%- endif -%} {%- endmacro -%}