{% extends "admin/admin/list.html" %} {% from "admin/macros.html" import page_title %} {% import "forms.html" as form_theme with context %} {% block title %}{{ page_title(parent=_(action.role.name), title=_("Role Forum Permissions")) }}{% endblock %} {% block table_head scoped %} {% trans %}Forum{% endtrans %} {% trans %}Role{% endtrans %} {% endblock %} {% block table_row scoped %} {{ item.name }} {{ form_theme.field(table_form['forum_' + item.pk|string], attrs={'class': 'span6', 'form': 'table_form'}) }} {% endblock %} {% macro forum_icon(forum_type) -%} {%- if forum_type == 'category' -%} folder-open {%- elif forum_type == 'forum' -%} list {%- else -%} globe {%- endif -%} {%- endmacro %}