mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
Improve templating in Closing Motive admin
This commit is contained in:
parent
da9d1120ac
commit
30eacea228
@ -113,3 +113,5 @@ Master branch
|
|||||||
- [Accompanying period list] Fix label of closing motive
|
- [Accompanying period list] Fix label of closing motive
|
||||||
- [Person details] Add an "empty" statement on place of birth
|
- [Person details] Add an "empty" statement on place of birth
|
||||||
- [Person list] Add a lock/unlock icon instead of open/closed folder in result list;
|
- [Person list] Add a lock/unlock icon instead of open/closed folder in result list;
|
||||||
|
- [Admin closing motive] Remove links to Closing motive View;
|
||||||
|
- [Admin closing motive] Improve icons for active in list of closing motive;
|
||||||
|
@ -7,5 +7,6 @@
|
|||||||
{% block admin_content %}
|
{% block admin_content %}
|
||||||
{% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
|
{% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
|
||||||
{% block content_form_actions_view %}{% endblock %}
|
{% block content_form_actions_view %}{% endblock %}
|
||||||
|
{% block content_form_actions_save_and_show %}{% endblock %}
|
||||||
{% endembed %}
|
{% endembed %}
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -14,15 +14,23 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ entity.ordering }}</td>
|
<td>{{ entity.ordering }}</td>
|
||||||
<td>{{ entity|chill_entity_render_box }}</td>
|
<td>{{ entity|chill_entity_render_box }}</td>
|
||||||
<td>{{ entity.active }}</td>
|
<td style="text-align:center">
|
||||||
|
{% if entity.active %}
|
||||||
|
<i class="fa fa-check-square-o"></i>
|
||||||
|
{% else %}
|
||||||
|
<i class="fa fa-square-o"></i>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ chill_path_add_return_path('chill_crud_closing_motive_edit', { 'id': entity.id }) }}" class="sc-button bt-edit"></a>
|
<a href="{{ chill_path_add_return_path('chill_crud_closing_motive_edit', { 'id': entity.id }) }}" class="sc-button bt-edit"></a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if entity.active %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ chill_path_add_return_path('chill_crud_closing_motive_new', { 'parent_id': entity.id } ) }}" class="sc-button bt-new">{{ 'closing_motive.new child'|trans }}</a>
|
<a href="{{ chill_path_add_return_path('chill_crud_closing_motive_new', { 'parent_id': entity.id } ) }}" class="sc-button bt-new">{{ 'closing_motive.new child'|trans }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user