open create form for activity/project/customer in modals (#2025)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{% block main %}
|
||||
{% set formEditTemplate = app.request.xmlHttpRequest ? 'default/_form_modal.html.twig' : 'default/_form.html.twig' %}
|
||||
{% set formOptions = {
|
||||
'title': customer.name|default('create'|trans),
|
||||
'title': (customer.id is null ? 'create'|trans : 'edit'|trans({}, 'actions')),
|
||||
'form': form,
|
||||
'back': path('admin_customer')
|
||||
} %}
|
||||
|
||||
Reference in New Issue
Block a user