mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Active' }}</th>
|
||||
<th>{{ 'Active'|trans }}</th>
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -22,37 +22,45 @@
|
||||
<table class="records_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Active</th>
|
||||
<th>Actions</th>
|
||||
<th>{{ 'Name'|trans }}</th>
|
||||
<th>{{ 'Active'|trans }}Active</th>
|
||||
<th>{{ 'Actions'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
<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>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">show</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('chill_activity_activityreasoncategory_edit', { 'id': entity.id }) }}">edit</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="{{ path('chill_activity_activityreasoncategory_show', { 'id': entity.id }) }}">
|
||||
{{ entity.name|localize_translatable_string }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{% if entity.active %}
|
||||
<p>{{ 'Active'|trans }}</p>
|
||||
{% 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>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('chill_activity_activityreasoncategory_new') }}">
|
||||
Create a new entry
|
||||
{{'Create a new entry'|trans}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -22,16 +22,18 @@
|
||||
<table class="record_properties">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ entity.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>{{ 'Name'|trans }}</th>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Active</th>
|
||||
<td>{{ entity.active }}</td>
|
||||
<th>{{ 'Active'|trans }}</th>
|
||||
<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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user