fix delete workflow

This commit is contained in:
2022-02-23 17:52:43 +01:00
parent ffe4dd4a98
commit b56d8c2956
5 changed files with 28 additions and 10 deletions

View File

@@ -2,6 +2,21 @@
{% block title 'workflow.Delete workflow ?'|trans %}
{% block display_content %}
<h2>
{{ 'workflow_'|trans }}
</h2>
{% include handler.templateTitle(entityWorkflow) with handler.templateTitleData(entityWorkflow)|merge({
'description': true,
'add_classes': 'ms-3 h3'
}) %}
{% include handler.template(entityWorkflow) with handler.templateData(entityWorkflow)|merge({
'display_action': false
}) %}
{% endblock %}
{% block content %}
<div class="container chill-md-10">
@@ -9,6 +24,7 @@
{
'title' : 'workflow.Delete workflow ?'|trans,
'confirm_question' : 'workflow.Are you sure you want to delete this workflow ?'|trans,
'display_content' : block('display_content'),
'cancel_route' : 'chill_main_workflow_show',
'cancel_parameters' : {'id' : entityWorkflow.id},
'form' : delete_form

View File

@@ -41,7 +41,9 @@
<li>
<a class="btn btn-delete"
href="{{ chill_path_add_return_path('chill_main_workflow_delete', {'id': entity_workflow.id}) }}"
></a>
>
{{ 'workflow.Delete workflow'|trans }}
</a>
</li>
</ul>
{% endif %}