| 1 | {# display the list of list #} |
| 2 | |
| 3 | {% set category_menu = [('list_item_new', url_list_new)] %} |
| 4 | {% extends 'base/base.html' %} |
| 5 | {% import 'input/xmlui.html' as xmlui with context %} |
| 6 | {% import 'input/navigation.html' as navigation with context %} |
| 7 | {% import 'input/textbox.html' as textbox with context %} |
| 8 | |
| 9 | {% block body %} |
| 10 | <section class="section has-background-white"> |
| 11 | <nav class="level mb-4"> |
| 12 | <div class="level-left"> |
| 13 | <div class="level-item"> |
| 14 | {{ component.action_button(url_list_new) }} |
| 15 | </div> |
| 16 | {% if owner %} |
| 17 | <div class="level-item"> |
| 18 | {{ |
| 19 | component.action_button( |
| 20 | "#", |
| 21 | label=_("manage invitations"), |
| 22 | icon="group", |
| 23 | id="button_manage") |
| 24 | }} |
| 25 | </div> |
| 26 | {% endif %} |
| 27 | </div> |
| 28 | <div class="level-right"> |
| 29 | <div class="level-item"> |
| 30 | {{ textbox.search() }} |
| 31 | </div> |
| 32 | </div> |
| 33 | </nav> |
| 34 | {% if list_type == "todo" %} |
| 35 | {% include "list/view_todo.html" %} |
| 36 | {% elif list_type == "grocery" %} |
| 37 | {% include "list/view_grocery.html" %} |
| 38 | {% else %} |
| 39 | {% include "list/view_generic.html" %} |
| 40 | {% endif %} |
| 41 | </section> |
| 42 | {{ navigation.prev_next(_("previous page"), _("next page")) }} |
| 43 | {% endblock body %} |