From 3720b78db2ff6a43a5026643012090c149f31981 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 2 Apr 2021 11:32:42 +0200 Subject: [PATCH] Added nice file attachment template listing --- templates/forms/default/data.html.twig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/forms/default/data.html.twig b/templates/forms/default/data.html.twig index 9b6c16fe..71dc0189 100644 --- a/templates/forms/default/data.html.twig +++ b/templates/forms/default/data.html.twig @@ -25,6 +25,13 @@
  • {{ field.options[index]|t|e }}
  • {% endfor %} + {% elseif field.type == 'file' %} + {% set files = form.value(scope ~ field.name) %} + {% elseif field.type == 'radio' %} {% set value = form.value(scope ~ field.name) %} {{ field.options[value]|t|e }}