24 lines
795 B
Twig
24 lines
795 B
Twig
{% extends app.request.xmlHttpRequest ? 'form.html.twig' : 'base.html.twig' %}
|
|
{% import "customer/actions.html.twig" as actions %}
|
|
|
|
{% block page_title %}{{ 'admin_customer.title'|trans }}{% endblock %}
|
|
{% block page_actions %}{{ actions.customer(customer, 'delete') }}{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
{% set inUse = (stats.counter > 0) %}
|
|
|
|
{% set params = {
|
|
'%records%': stats.counter,
|
|
'%duration%': stats.duration|duration
|
|
} %}
|
|
|
|
{{ include(app.request.xmlHttpRequest ? 'default/_form_delete_modal.html.twig' : 'default/_form_delete.html.twig', {
|
|
'message': ("delete_warning.short_stats"|trans(params) ~ "admin_entity.delete_confirm"|trans),
|
|
'form': form,
|
|
'used': inUse,
|
|
'back': path('admin_customer')
|
|
}) }}
|
|
|
|
{% endblock %}
|