mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Template for ActivityReasonCategory with translation + better looking - refs #622
This commit is contained in:
parent
e8f8c8e52d
commit
4ef4a64ea6
@ -26,14 +26,14 @@
|
|||||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'Active' }}</th>
|
<th>{{ 'Active'|trans }}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if entity.active %}
|
{% if entity.active %}
|
||||||
<p>{{ 'The entity is active and will be proposed'|trans }}</p>
|
<p>{{ 'The entity is active and will be proposed'|trans }}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{{ "The entity is inactive and won't be proposed"|trans }}</p>
|
<p>{{ "The entity is inactive and won't be proposed"|trans }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -22,37 +22,45 @@
|
|||||||
<table class="records_list">
|
<table class="records_list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>{{ 'Name'|trans }}</th>
|
||||||
<th>Name</th>
|
<th>{{ 'Active'|trans }}Active</th>
|
||||||
<th>Active</th>
|
<th>{{ 'Actions'|trans }}</th>
|
||||||
<th>Actions</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for entity in entities %}
|
{% for entity in entities %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
|
||||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
|
||||||
<td>{{ entity.active }}</td>
|
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">
|
||||||
<li>
|
{{ entity.name|localize_translatable_string }}
|
||||||
<a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">show</a>
|
</a>
|
||||||
</li>
|
</td>
|
||||||
<li>
|
<td>
|
||||||
<a href="{{ path('chill_activity_activityreasoncategory_edit', { 'id': entity.id }) }}">edit</a>
|
{% if entity.active %}
|
||||||
</li>
|
<p>{{ 'Active'|trans }}</p>
|
||||||
</ul>
|
{% else %}
|
||||||
|
<p>{{ "Inactive"|trans }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">{{'show'|trans}}</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('chill_activity_activityreasoncategory_edit', { 'id': entity.id }) }}">{{'edit'|trans}}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('chill_activity_activityreasoncategory_new') }}">
|
<a href="{{ path('chill_activity_activityreasoncategory_new') }}">
|
||||||
Create a new entry
|
{{'Create a new entry'|trans}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -22,16 +22,18 @@
|
|||||||
<table class="record_properties">
|
<table class="record_properties">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>{{ 'Name'|trans }}</th>
|
||||||
<td>{{ entity.id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Active</th>
|
<th>{{ 'Active'|trans }}</th>
|
||||||
<td>{{ entity.active }}</td>
|
<td>
|
||||||
|
{% if entity.active %}
|
||||||
|
<p>{{ 'The entity is active and will be proposed'|trans }}</p>
|
||||||
|
{% else %}
|
||||||
|
<p>{{ "The entity is inactive and won't be proposed"|trans }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user