oshipka/vm_gen/templates/html/_actions.html

7 lines
315 B
HTML
Raw Permalink Normal View History

2021-05-08 15:52:52 +02:00
{% if not has_permission('[[ name|camel_to_snake ]]', 'update', instance) and not has_permission('[[ name|camel_to_snake ]]', 'delete', instance) %}
{% else %}
[
{% include "[[ name|camel_to_snake ]]/_action_edit.html" %} |
{% include "[[ name|camel_to_snake ]]/_action_delete.html" %}
]
{% endif %}