add 'back to overview' links when adding/editing entities
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -20,6 +20,13 @@
|
||||
|
||||
{% block actions %}
|
||||
|
||||
{% if formdata.self_overview is defined and formdata.self_overview is iterable %}
|
||||
{% if action_links is not defined %}{% set actions_links = [] %}{% endif %}
|
||||
{% set actions_tmp = actions_links %}
|
||||
{% set actions_links = {'href': linker(formdata.self_overview), 'icon': 'fa fa-reply','label': lng('panel.backtooverview')} %}
|
||||
{% set actions_links = {actions_links}|merge(actions_tmp) %}
|
||||
{% endif %}
|
||||
|
||||
{% if actions_links is iterable or (entity_info is defined and entity_info is not empty) %}
|
||||
<div>
|
||||
{% if actions_links is iterable %}
|
||||
@@ -38,6 +45,7 @@
|
||||
#}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
Reference in New Issue
Block a user