{% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %}
{% for item in list_items %} {% set is_bought = item.widget_value.status == 'bought' %}
{{item.widget_value.name}}
{{item.widget_value.quantity}}
{% endfor %} {% call form.form(id="post_grocery") %} {{ field.meta("type", "grocery") }} {% call field.text("name", class="has-addons", control_class="is-expanded", placeholder=_("item to get"), required=true) %} {{ field.int("quantity", control_class="has-width-7", placeholder=_("quantity"), init="", min=1, in_group=true) }} {{ field.submit("", icon="plus") }} {% endcall %} {% endcall %}