Files
Phraseanet/templates/web/admin/collection/details.html.twig
Nicolas Le Goff aeb14dcf15 remove response->send
fix testes

fix testes

fix tests

fix tests

fix paths
2012-09-03 18:08:59 +02:00

47 lines
1.3 KiB
Twig

<div class="header">
<h1>{{ collection.get_name() }} <small>{% trans "Details" %}</small></h1>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>{% trans 'admin::base: objet' %}</th>
<th>{% trans 'admin::base: nombre' %}</th>
<th>{% trans 'admin::base: poids' %} (Mo)</th>
<th>{% trans 'admin::base: poids' %} (Go)</th>
</tr>
</thead>
<tbody>
{% for row in table['result'] %}
<tr style='backgound-color:{{ loop.index is even ? '#ccc' : '#fff' }}'>
<td>{{ row['name'] }}</td>
<td>{{ row['amount'] }}</td>
<td>{{ row['mega'] }}</td>
<td>{{ row['giga'] }}</td>
</tr>
{% endfor %}
{% set totals = table['total'] %}
<tfoot>
<tr>
<th>
{% trans 'Total' %}
</th>
<th>
{{ totals['totobj'] }}
</th>
<th>
{{ totals['mega'] }}
</th>
<th>
{{ totals['giga'] }}
</th>
</tr>
</tfoot>
</tbody>
</table>
<div>
<a class='btn btn-mini' href='/admin/collection/{{ collection.get_base_id() }}/'>{% trans 'boutton::retour' %}</a>
</div>