layout.html (610B)
1 {% extends 'base.html' %} 2 3 {% block title %}Admin{% endblock %} 4 5 {% block content %} 6 7 {% with messages = get_flashed_messages() %} 8 {% if messages %} 9 {% for message in messages %} 10 <div id="messagebanner"><p>{{ message }}</p></div> 11 {% endfor %} 12 {% endif %} 13 {% endwith %} 14 15 <section class="admin-grid"> 16 <!-- returned values from admin check is array of permissive ACCESS else return 'missing permissions response' --> 17 {%- for x in permissions %} 18 {% include 'admin/'~x~'/widget.html' %} 19 {%- else-%} 20 {{ 'You do not have permission to access this page' }} 21 {%- endfor %} 22 </section> 23 {% endblock %}