{% from "tungsten/forms/macros.html" import wrapper, ui_action %} {% call wrapper(field, v) %}
{% if v.deletable and not v.disabled %}{% endif %} {% for row in v.rows %} {% if v.deletable and not v.disabled %} {% endif %} {% else %} {% endfor %}
{{ v.key_label }} {{ v.value_label }}
{{ ui_action(form, 'keyvalue.remove:' ~ v.path ~ ':' ~ loop.index0, __('Delete'), 'tw-icon-btn h-7 w-7 ' ~ colors.ICON_BUTTON.danger, 'trash-2') }}
{{ __('No entries.') }}
{% if v.addable and not v.disabled %}
{{ ui_action(form, 'keyvalue.add:' ~ v.path, v.add_label, 'tw-btn tw-btn-sm ' ~ colors.BUTTON.gray) }}
{% endif %} {% endcall %}