admin: add civility

This commit is contained in:
nobohan
2022-05-03 18:33:56 +02:00
parent 9808675455
commit 76af733bc3
7 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
{% block content -%}
{% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
{% block content_form_actions_save_and_show %}{% endblock %}
{% endembed %}
{% endblock content %}

View File

@@ -0,0 +1,33 @@
{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
{% block content %}
{% embed '@ChillMain/CRUD/_index.html.twig' %}
{% block table_entities_thead_tr %}
<th>id</th>
<th>name</th>
<th>abbreviation</th>
<th>active</th>
<th>ordering</th>
<th></th>
{% endblock %}
{% block table_entities_tbody %}
{% for entity in entities %}
<tr>
<td>{{ entity.id }}</td>
<td>{{ entity.name|localize_translatable_string }}</td>
<td>{{ entity.abbreviation|localize_translatable_string }}</td>
<td>{{ entity.active }}</td>
<td>{{ entity.order }}</td>
<td>
<ul class="record_actions">
<li>
<a href="{{ chill_path_add_return_path('chill_crud_main_civility_edit', { 'id': entity.id}) }}" class="btn btn-sm btn-edit btn-mini"></a>
</li>
</ul>
</td>
</tr>
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock content %}

View File

@@ -0,0 +1,7 @@
{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
{% block content -%}
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
{% block content_form_actions_save_and_show %}{% endblock %}
{% endembed %}
{% endblock content %}