comparison sat_templates/templates/bulma/list/view_grocery.html @ 332:3db3509cbad1

bulma: fix items/pagination ordering in various places following ordering fix in Libervia/SàT Pubsub
author Goffi <goffi@goffi.org>
date Sun, 06 Jun 2021 19:53:56 +0200
parents 27511c821481
children
comparison
equal deleted inserted replaced
331:0c9f8bd0fc20 332:3db3509cbad1
1 {% import 'input/form.html' as form with context %} 1 {% import 'input/form.html' as form with context %}
2 {% import 'input/field.html' as field with context %} 2 {% import 'input/field.html' as field with context %}
3 3
4 <div id="list" class="container has-background-white px-1 py-1"> 4 <div id="list" class="container has-background-white px-1 py-1">
5 {% for item in list_items %} 5 {% for item in list_items|reverse %}
6 {% set is_bought = item.widget_value.status == 'bought' %} 6 {% set is_bought = item.widget_value.status == 'bought' %}
7 <div class="item box has-background-light has-text-weight-medium 7 <div class="item box has-background-light has-text-weight-medium
8 {{'list-item-closed' if is_bought}}" 8 {{'list-item-closed' if is_bought}}"
9 data-item='{{item.values|tojson}}'> 9 data-item='{{item.values|tojson}}'>
10 <div class="level is-mobile"> 10 <div class="level is-mobile">