diff --git a/src/Resources/views/crud/detail.html.twig b/src/Resources/views/crud/detail.html.twig index abfe7d36e0..d8a0d7b069 100644 --- a/src/Resources/views/crud/detail.html.twig +++ b/src/Resources/views/crud/detail.html.twig @@ -37,8 +37,8 @@ {%- apply spaceless -%} {% set custom_page_title = ea.crud.customPageTitle(pageName, entity ? entity.instance : null, ea.i18n.translationParameters) %} {{ custom_page_title is null - ? ea.crud.defaultPageTitle(null, null, ea.i18n.translationParameters)|trans|raw - : custom_page_title|trans|raw }} + ? ea.crud.defaultPageTitle(null, null, ea.i18n.translationParameters)|trans|raw + : custom_page_title|trans|raw }} {%- endapply -%} {% endblock %} @@ -146,45 +146,45 @@ {% endmacro %} {% macro render_tab_group_open(field) %} - {% endmacro %} {% macro render_tab_open(field) %} {% set tab_id_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_ID') %} {% set tab_is_active_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_IS_ACTIVE') %} -
-
- {% if field.help %} -
- {{ field.help|trans(domain = ea.i18n.translationDomain)|raw }} -
- {% endif %} +
+
+ {% if field.help %} +
+ {{ field.help|trans(domain = ea.i18n.translationDomain)|raw }} +
+ {% endif %} -
- {% endmacro %} +
+{% endmacro %} - {% macro render_tab_close(field) %} +{% macro render_tab_close(field) %} +
-
{% endmacro %} {% macro render_column_group_open(field) %} {# if columns are inside tabs, don't add a '.row' element because the tab pane already opens it #} {% if not field.getFormTypeOption('ea_is_inside_tab')|default(false) %} -
+
{% endif %} - {% endmacro %} +{% endmacro %} - {% macro render_column_group_close(field) %} +{% macro render_column_group_close(field) %} {# if columns are inside tabs, don't add a '.row' element because the tab pane already opens it #} {% if not field.getFormTypeOption('ea_is_inside_tab')|default(false) %} -
+
{% endif %} {% endmacro %} @@ -192,23 +192,23 @@ {% set field_icon = field.getCustomOption('icon') %} {% set column_has_title = field_icon != null or field.label != false or field.label != null or field.label != '' or field.help != null %} -
- {% if column_has_title %} -
-
- {% if field_icon %}{% endif %} - {% if field.label %}{{ field.label|trans(domain = ea.i18n.translationDomain)|raw }}{% endif %} -
+
+ {% if column_has_title %} +
+
+ {% if field_icon %}{% endif %} + {% if field.label %}{{ field.label|trans(domain = ea.i18n.translationDomain)|raw }}{% endif %} +
- {% if field.help %} -
{{ field.help|trans(domain = ea.i18n.translationDomain)|raw }}
- {% endif %} -
- {% endif %} - {% endmacro %} + {% if field.help %} +
{{ field.help|trans(domain = ea.i18n.translationDomain)|raw }}
+ {% endif %} +
+ {% endif %} +{% endmacro %} - {% macro render_column_close(field) %} -
+{% macro render_column_close(field) %} +
{% endmacro %} {% macro render_fieldset_open(field) %} @@ -218,51 +218,51 @@ {% set is_collapsible = field.getCustomOption(is_collapsible_option_name) %} {% set is_collapsed = field.getCustomOption(is_collapsed_option_name) %} -
-
- {% if fieldset_has_header %} -
-
- {% set fieldset_title_contents %} - {% if is_collapsible %} - - {% endif %} +
+
+ {% if fieldset_has_header %} +
+
+ {% set fieldset_title_contents %} + {% if is_collapsible %} + + {% endif %} - {% if field.getCustomOption('icon') %} - - {% endif %} + {% if field.getCustomOption('icon') %} + + {% endif %} - {{ field.label|trans|raw }} - {% endset %} + {{ field.label|trans|raw }} + {% endset %} - {% if is_collapsible %} - - {% else %} - + {% if is_collapsible %} + + {% else %} + {{ fieldset_title_contents|raw }} - {% endif %} + {% endif %} - {% if field.help %} -
{{ field.help|trans|raw }}
- {% endif %} + {% if field.help %} +
{{ field.help|trans|raw }}
+ {% endif %} +
-
- {% endif %} + {% endif %} -
-
+ +
{% endmacro %} @@ -342,42 +342,42 @@ {% set fieldset_help = field is null ? null : field.help|default(false)%} {% set fieldset_has_header = collapsible or fieldset_icon or fieldset_label or fieldset_help %} -
-
- {% if fieldset_has_header %} -
-
- - {% if collapsible %} - +
+
+ {% if fieldset_has_header %} +
+
+ + {% if collapsible %} + + {% endif %} + + {% if fieldset_icon %} + + {% endif %} + {{ fieldset_label|trans|raw }} + - {% if fieldset_icon %} - + {% if fieldset_help %} +
{{ fieldset_help|trans|raw }}
{% endif %} - {{ fieldset_label|trans|raw }} - - - {% if fieldset_help %} -
{{ fieldset_help|trans|raw }}
- {% endif %} +
-
- {% endif %} + {% endif %} - {% endif %} + {% if has_input_groups %}
{% endif %} {% if field.help ?? false %} {{ field.help|trans(label_translation_parameters, translation_domain)|raw }} @@ -530,15 +530,15 @@ {% block ea_form_column_group_open_row %} {# if columns are inside tabs, don't add a '.row' element because the tab pane already opens it #} {% if not form.vars.ea_is_inside_tab|default(false) %} -
+
{% endif %} - {% endblock ea_form_column_group_open_row %} +{% endblock ea_form_column_group_open_row %} - {% block ea_form_column_group_close_row %} +{% block ea_form_column_group_close_row %} {# if columns are inside tabs, we don't add a '.row' element because the tab pane already opens it; so, don't close it here #} {% if not form.vars.ea_is_inside_tab|default(false) %} -
+
{% endif %} {% endblock ea_form_column_group_close_row %} @@ -547,73 +547,73 @@ {% set field_icon = field.getCustomOption('icon') %} {% set column_has_title = field_icon != null or field.label != false or field.label != null or field.label != '' or field.help != null %} -
- {% if column_has_title %} -
-
- {% if field_icon %}{% endif %} - {% if field.label %}{{ field.label|default('')|trans(domain = ea.i18n.translationDomain)|raw }}{% endif %} -
+
+ {% if column_has_title %} +
+
+ {% if field_icon %}{% endif %} + {% if field.label %}{{ field.label|default('')|trans(domain = ea.i18n.translationDomain)|raw }}{% endif %} +
- {% if field.help %} -
{{ field.help|trans(domain = ea.i18n.translationDomain)|raw }}
- {% endif %} -
- {% endif %} - {% endblock ea_form_column_open_row %} + {% if field.help %} +
{{ field.help|trans(domain = ea.i18n.translationDomain)|raw }}
+ {% endif %} +
+ {% endif %} +{% endblock ea_form_column_open_row %} - {% block ea_form_column_close_row %} -
+{% block ea_form_column_close_row %} +
{% endblock ea_form_column_close_row %} {% block ea_form_fieldset_open_row %} {% set fieldset_has_header = form.vars.label or ea_icon or ea_help %} -
-
- {% if fieldset_has_header %} -
-
- {% set fieldset_title_contents %} - {% if ea_is_collapsible %} - - {% endif %} +
+
+ {% if fieldset_has_header %} +
+
+ {% set fieldset_title_contents %} + {% if ea_is_collapsible %} + + {% endif %} - {% if ea_icon %} - - {% endif %} + {% if ea_icon %} + + {% endif %} - {{ form.vars.label|trans|raw }} - {% endset %} + {{ form.vars.label|trans|raw }} + {% endset %} - {% if ea_is_collapsible %} - - {{ fieldset_title_contents|raw }} - - {% else %} - + {% if ea_is_collapsible %} + + {{ fieldset_title_contents|raw }} + + {% else %} + {{ fieldset_title_contents|raw }} - {% endif %} + {% endif %} - {% if ea_help %} -
{{ ea_help|trans|raw }}
- {% endif %} + {% if ea_help %} +
{{ ea_help|trans|raw }}
+ {% endif %} +
-
- {% endif %} + {% endif %} -
-
- {% endblock ea_form_fieldset_open_row %} +
+
+{% endblock ea_form_fieldset_open_row %} - {% block ea_form_fieldset_close_row %} +{% block ea_form_fieldset_close_row %} +
-
-
-
+ +
{% endblock ea_form_fieldset_close_row %} {% block ea_form_tablist_row %} @@ -646,31 +646,31 @@ {% endblock ea_form_tablist_row %} {% block ea_form_tabpane_group_open_row %} - {% endblock ea_form_tabpane_group_close_row %} {% block ea_form_tabpane_open_row %} {% set tab_is_active_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_IS_ACTIVE') %} {% set field = form.vars.ea_vars.field %} -
-
- {% if ea_help %} -
- {{ ea_help|trans(domain = ea.i18n.translationDomain)|raw }} -
- {% endif %} +
+
+ {% if ea_help %} +
+ {{ ea_help|trans(domain = ea.i18n.translationDomain)|raw }} +
+ {% endif %} -
- {% endblock ea_form_tabpane_open_row %} +
+{% endblock ea_form_tabpane_open_row %} - {% block ea_form_tabpane_close_row %} +{% block ea_form_tabpane_close_row %} +
-
{% endblock ea_form_tabpane_close_row %} {# EasyAdminFilters form type #} @@ -683,8 +683,8 @@
@@ -763,7 +763,7 @@ {{ file.filename }} - {% if download_path %}{% endif %} + {% if download_path %}{% endif %} {{ file.size|ea_filesize }}