{% if error %} {{ error }} {% else %} {% if rejected_cnt > 0 %} {{ "thesaurus::edit you don't have rights to edit %rejected_cnt% record(s)" | trans({'%rejected_cnt%': rejected_cnt}) }} {% endif %} {% set simple_possible = false %} {% set advanced_needed = true %} {% set selected_sy = null %} {% set bf0 = by_fields|first %} {% if by_fields|length == 1 %} {# if there is only 1 field, we can propose a "simple" ux with the selected "value" (dropped-on) #} {# bf0 is the only field #} {% set simple_possible = true %} {% endif %}
{% if simple_possible %}
{% if bf0.field.is_multi() %} {{ 'thesaurus::edit add %selected_value% to the field %field_name%'| trans({'%selected_value%': '' ~ bf0.selected_value.value ~ '', '%field_name%': ''~ bf0.field.get_name() ~ ''}) | raw }} {% else %} {{ 'thesaurus::edit set %field_name% to %selected_value%' | trans({'%field_name%': '' ~ bf0.field.get_name() ~ '', '%selected_value%': '' ~ bf0.selected_value.value ~ ''}) | raw }} {% endif %}
{% endif %} {% if advanced_needed %}
{% set n = 0 %} {% for bf in by_fields %} {% set n = n+1 %} {% endfor %}
{{ 'thesaurus::edit Field' | trans }} {{ 'thesaurus::edit Action' | trans }} {{ 'thesaurus::edit Value' | trans }}
{{ bf.field.get_name() }} :
{% endif %}
{% endif %}