mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-19 16:54:25 +00:00
47 lines
2.1 KiB
Twig
47 lines
2.1 KiB
Twig
<div class="{% block crud_content_main_div_class %}grid-10 centered{% endblock %}">
|
|
{% block crud_content_header %}
|
|
<h1>{{ 'crud.%crud_name%.title_view'|trans({'%crud_name%' : crud_name }) }}</h1>
|
|
{% endblock crud_content_header %}
|
|
|
|
{% block crud_content_view %}
|
|
|
|
{% block crud_content_view_details %}
|
|
<dl class="chill_view_data">
|
|
<dt>id</dt>
|
|
<dd>{{ entity.id|default("No id") }}</dd>
|
|
</dl>
|
|
{% endblock crud_content_view_details %}
|
|
|
|
{% block crud_content_view_actions %}
|
|
<ul class="record_actions sticky-form-buttons">
|
|
{% block content_view_actions_back %}
|
|
<li class="cancel">
|
|
<a class="sc-button bt-cancel" href="{{ chill_return_path_or('chill_crud_'~crud_name~'_index') }}">
|
|
{{ 'Cancel'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endblock %}
|
|
{% block content_view_actions_duplicate_link %}
|
|
{% if is_granted(chill_crud_config('role', crud_name, 'new'), entity) %}
|
|
<li>
|
|
<a class="sc-button bt-duplicate" href="{{ chill_return_path_or('chill_crud_'~crud_name~'_new', { 'duplicate_id': entity.id, 'duplicate': true }) }}">
|
|
{{ 'crud.view.link_duplicate'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endblock content_view_actions_duplicate_link %}
|
|
{% block content_view_actions_edit_link %}
|
|
{% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %}
|
|
<li>
|
|
<a class="sc-button bt-edit" href="{{ chill_return_path_or('chill_crud_'~crud_name~'_edit', { 'id': entity.id }) }}">
|
|
{{ 'crud.new.link_edit'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endblock content_view_actions_edit_link %}
|
|
</ul>
|
|
{% endblock crud_content_view_actions %}
|
|
|
|
{% endblock crud_content_view %}
|
|
</div>
|