From 1616b13eb510c671bc0799e2f3d364ec5ab4f2cd Mon Sep 17 00:00:00 2001 From: StijnVrolijk Date: Wed, 29 Jul 2020 07:38:20 +0200 Subject: [PATCH] Apply frontend changes from Core to theme --- .../Modules/Faq/Layout/Templates/Detail.html.twig | 1 - .../FormBuilder/Layout/Templates/Mails/Form.html.twig | 7 ++++++- .../Modules/FormBuilder/Layout/Widgets/Form.html.twig | 6 +++--- .../Modules/Profiles/Layout/Widgets/LoginLink.html.twig | 2 +- .../Bootstrap4/src/Layout/Templates/Navigation.html.twig | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/Frontend/Themes/Bootstrap4/Modules/Faq/Layout/Templates/Detail.html.twig b/src/Frontend/Themes/Bootstrap4/Modules/Faq/Layout/Templates/Detail.html.twig index baca622f9d..2f771d7627 100644 --- a/src/Frontend/Themes/Bootstrap4/Modules/Faq/Layout/Templates/Detail.html.twig +++ b/src/Frontend/Themes/Bootstrap4/Modules/Faq/Layout/Templates/Detail.html.twig @@ -45,7 +45,6 @@ {% form feedback %}
- {{ hidQuestionId|raw }}
{{ 'msg.Feedback'|trans|ucfirst }}
diff --git a/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Templates/Mails/Form.html.twig b/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Templates/Mails/Form.html.twig index eb46dc68ba..c6e13eff9e 100644 --- a/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Templates/Mails/Form.html.twig +++ b/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Templates/Mails/Form.html.twig @@ -11,6 +11,11 @@

{{ 'lbl.Content'|trans|ucfirst }}

{% for field in fields %} -

{{ field.label }}:
{{ field.value|raw }}

+

{{ field.label|raw }}{% if field.value %}:{% endif %} + {% if field.value %} +
+ {{ field.value|replace({'
\r\n' : '\r\n','
\r\n' : '\r\n','
' : '\r\n','
' : '\r\n'})|e|nl2br|raw }} + {% endif %} +

{% endfor %} {% endblock %} diff --git a/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Widgets/Form.html.twig b/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Widgets/Form.html.twig index 32ff6da26c..0e13d9ab4b 100644 --- a/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Widgets/Form.html.twig +++ b/src/Frontend/Themes/Bootstrap4/Modules/FormBuilder/Layout/Widgets/Form.html.twig @@ -35,7 +35,7 @@ {{ field.label|raw }}{% if field.required %}*{% endif %} {{ field.html|raw }} - {% if field.error %}{% endif %} + {% if field.error %}{% endif %}
{% endif %} @@ -45,7 +45,7 @@ - {% if field.error %}{% endif %} + {% if field.error %}{% endif %}
{% endif %} @@ -62,7 +62,7 @@ {% endfor %} - {% if field.error %}{{ field.error }}{% endif %} + {% if field.error %}{{ field.error|raw }}{% endif %} {% endif %} diff --git a/src/Frontend/Themes/Bootstrap4/Modules/Profiles/Layout/Widgets/LoginLink.html.twig b/src/Frontend/Themes/Bootstrap4/Modules/Profiles/Layout/Widgets/LoginLink.html.twig index 95e5170385..da73ddd395 100644 --- a/src/Frontend/Themes/Bootstrap4/Modules/Profiles/Layout/Widgets/LoginLink.html.twig +++ b/src/Frontend/Themes/Bootstrap4/Modules/Profiles/Layout/Widgets/LoginLink.html.twig @@ -7,7 +7,7 @@ {% if isLoggedIn %}