diff --git a/templates/forms/default/data.html.twig b/templates/forms/default/data.html.twig index 729157f4..9b6c16fe 100644 --- a/templates/forms/default/data.html.twig +++ b/templates/forms/default/data.html.twig @@ -22,9 +22,12 @@ {% set use_keys = field.use is defined and field.use == 'keys' %} {% for key,value in form.value(scope ~ field.name) %} {% set index = (use_keys ? key : value) %} -
  • {{ field.options[index]|e }}
  • +
  • {{ field.options[index]|t|e }}
  • {% endfor %} + {% elseif field.type == 'radio' %} + {% set value = form.value(scope ~ field.name) %} + {{ field.options[value]|t|e }} {% elseif field.type == 'checkbox' %} {{ (form.value(scope ~ field.name) == 1) ? "GRAV.YES"|t|e : "GRAV.NO"|t|e }} {% elseif field.type == 'select' %}