0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-01-10 19:47:35 +00:00
kevinpapst_kimai2/templates/default/_form_delete.html.twig
2024-11-21 22:44:49 +01:00

33 lines
1.1 KiB
Twig

{% embed '@theme/embeds/card.html.twig' with {'boxtype': 'danger'} %}
{% block box_before %}
{{ form_start(form) }}
{% endblock %}
{% block box_title %}
{{ title|default('confirm.delete'|trans) }}
{% endblock %}
{% block box_body %}
{% block form_body %}
{% if delete_item_name is defined %}
<p><strong>{{ delete_item_name }}</strong></p>
{% endif %}
{% if used is same as (false) %}
{{ 'delete.not_in_use'|trans }}
<div class="d-none">
{{ form_widget(form) }}
</div>
{% else %}
<p>{{ message }}</p>
{{ form_widget(form) }}
{% endif %}
{% endblock %}
{% endblock %}
{% block box_footer %}
<input type="submit" value="{{ 'delete'|trans }}" class="btn btn-danger" />
{% if back %}
<a href="{{ back }}" class="btn btn-link">{{ 'back'|trans }}</a>
{% endif %}
{% endblock %}
{% block box_after %}
{{ form_end(form) }}
{% endblock %}
{% endembed %}