Revert id in modal confirm (to be checked)

This commit is contained in:
Alfredo Cardigliano 2021-08-05 11:56:57 +02:00
parent 253c524ec7
commit 3e2e9d301c

View file

@ -19,9 +19,9 @@
{*dialog.err_msg*}
</span>
{% if dialog.action ~= nil then %}
<a type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}" onclick="{{dialog.action}}">{*dialog.confirm*}</a>
<button type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}" onclick="{{dialog.action}}">{*dialog.confirm*}</button>
{% else %}
<a target="_blank" {% if not dialog.no_confirm_id then %} id="btn-confirm-action_{{dialog.id}}" {% end %} type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}">{*dialog.confirm*}</a>
<button {% if not dialog.no_confirm_id then %} id="btn-confirm-action" {% end %} type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}">{*dialog.confirm*}</button>
{% end %}
</div>
{% end %}