add block for bottom action buttons

This commit is contained in:
Julien Fastré 2020-01-14 22:45:17 +01:00
parent 1f1c9fb726
commit 6109520c95
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@
</a>
</li>
{% endblock %}
{% block content_form_actions_before %}{% endblock %}
{% block content_form_actions_view %}
{% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %}
<li class="">
@ -44,6 +45,7 @@
</button>
</li>
{% endblock %}
{% block content_form_actions_after %}{% endblock %}
</ul>
{% endblock %}

View File

@ -21,6 +21,7 @@
</a>
</li>
{% endblock %}
{% block content_view_actions_before %}{% endblock %}
{% block content_view_actions_duplicate_link %}
{% if is_granted(chill_crud_config('role', crud_name, 'new'), entity) %}
<li>
@ -39,6 +40,7 @@
</li>
{% endif %}
{% endblock content_view_actions_edit_link %}
{% block content_view_actions_after %}{% endblock %}
</ul>
{% endblock crud_content_view_actions %}