Template for ActivityReasonCategory with translation + better looking - refs #622

This commit is contained in:
Marc Ducobu 2015-10-02 14:55:58 +02:00
parent e8f8c8e52d
commit 4ef4a64ea6
3 changed files with 36 additions and 26 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>