replaced delete confirm dialog with modal (#638)
This commit is contained in:
17
templates/timesheet-team/delete.html.twig
Normal file
17
templates/timesheet-team/delete.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends app.request.xmlHttpRequest ? 'form.html.twig' : 'base.html.twig' %}
|
||||
{% import "macros/actions.html.twig" as actions %}
|
||||
|
||||
{% block page_title %}{{ 'admin_timesheet.title'|trans }}{% endblock %}
|
||||
{% block page_subtitle %}{{ 'admin_timesheet.subtitle'|trans }}{% endblock %}
|
||||
{% block page_actions %}{{ actions.timesheet_team(timesheet, 'delete') }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{{ include(app.request.xmlHttpRequest ? 'default/_form_delete_modal.html.twig' : 'default/_form_delete.html.twig', {
|
||||
'message': "delete.not_in_use"|trans|raw,
|
||||
'form': form,
|
||||
'used': false,
|
||||
'back': path('admin_timesheet')
|
||||
}) }}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user