{% extends 'shelf/base/base.html' %} {% import 'shelf/base/lib.html' as lib with context %} {% import 'shelf/model/layout.html' as model_layout with context %} {% import 'shelf/base/actions.html' as actionlib with context %} {% block head %} {{ super() }} {% endblock %} {% block iscontent %}active{% endblock %} {% block body %}

{{ admin_view.name.upper() }}

{% block model_list_table %} {% block list_header scoped %} {% if actions %} {% endif %} {% set column = 0 %} {% for c, name in list_columns %} {% set column = column + 1 %} {% endfor %} {% block list_row_actions_header %} {% endblock %} {% endblock %} {% for row in data %} {% block list_row scoped %} {% if actions %} {% endif %} {% for c, name in list_columns %} {% endfor %} {% endblock %} {% endfor %}
{% if admin_view.is_sortable(c) %} {% if sort_column == column %} {{ name }} {% if sort_desc %} {% else %} {% endif %} {% else %} {{ name }} {% endif %} {% else %} {{ name }} {% endif %} {% if admin_view.column_descriptions.get(c) %} {% endif %}  
{{ get_value(row, c) }} {% block list_row_actions scoped %} {%- if admin_view.can_edit -%} {%- endif -%} {%- if admin_view.can_delete -%}
{%- endif -%} {% endblock %}
{% endblock %}
{{ actionlib.form(actions, url_for('.action_view')) }} {% if filter_groups %} {% endif %} {% endblock %} {% block bottom %} {% endblock %} {% block tail %} {{ super() }} {{ actionlib.script(_gettext('Please select at least one model.'), actions, actions_confirmation) }} {% endblock %}