Skip to content

Commit 0201593

Browse files
committed
Action twig small code modification.
1 parent d42a080 commit 0201593

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Resources/views/render/action.html.twig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,17 @@
6363
{% block actions %}
6464
{% for actionKey, action in actions %}
6565
{% if render_if_actions[actionKey] is same as(true) %}
66+
{{ action.startHtml|raw }}
6667
{% if action.button is same as(false) %}
67-
{{ action.startHtml|raw }}
6868
<a {{ macros.href(action, route_parameters[actionKey]) }} {{ macros.attributes(attributes[actionKey]) }} {{ macros.confirm_dialog(action) }}>
6969
{{ macros.link_title(action) }}
7070
</a>
71-
{{ action.endHtml|raw }}
7271
{% else %}
73-
{{ action.startHtml|raw }}
7472
<button type="button" {{ macros.value(values[actionKey]) }} {{ macros.href(action, route_parameters[actionKey]) }} {{ macros.attributes(attributes[actionKey]) }} {{ macros.confirm_dialog(action) }}>
7573
{{ macros.link_title(action) }}
7674
</button>
77-
{{ action.endHtml|raw }}
7875
{% endif %}
76+
{{ action.endHtml|raw }}
7977
{% endif %}
8078
{% endfor %}
8179
{% endblock %}

0 commit comments

Comments
 (0)