Remove status bit name, use only labels

This commit is contained in:
Romain Neutron
2013-06-13 10:17:09 +02:00
parent a7c4739797
commit 1a13d02c2a
8 changed files with 92 additions and 45 deletions

View File

@@ -7,11 +7,9 @@
<table class="table table-striped table-condensed">
<thead>
<th>{% trans 'status:: numero de bit' %}</th>
<th colspan='2'></th>
<th style="width:30px;">{% trans 'status:: numero de bit' %}</th>
<th style="width:60px;" colspan='2'></th>
<th>{% trans 'status:: nom' %}</th>
<th>{% trans 'status:: icone A' %}</th>
<th>{% trans 'status:: icone B' %}</th>
<th>{% trans 'status:: cherchable par tous' %}</th>
<th>{% trans 'status:: Affichable pour tous' %}</th>
</thead>
@@ -42,17 +40,23 @@
{% if attribute(status, bit) is defined %}
{% set statusbit = attribute(status, bit) %}
<td>{{ statusbit['name'] }}</td>
<td>{% if statusbit['img_off'] %}<img title='{{ statusbit['labeloff'] }}' src='{{ statusbit['img_off'] }}' />{% endif %}</td>
<td>{% if statusbit['img_on'] %}<img title='{{ statusbit['labelon'] }}' src='{{ statusbit['img_on'] }}' />{% endif %}</td>
<td>
{% if statusbit['img_off'] %}
<img title='{{ statusbit['labeloff'] }}' src='{{ statusbit['img_off'] }}' />
{% endif %}
{{ statusbit['labeloff'] }}
/
{% if statusbit['img_on'] %}
<img title='{{ statusbit['labelon'] }}' src='{{ statusbit['img_on'] }}' />
{% endif %}
{{ statusbit['labelon'] }}
</td>
<td>{{ statusbit['searchable'] is defined and statusbit['searchable'] == '1' ? 'oui'| trans : 'non'| trans }}</td>
<td>{{ statusbit['printable'] is defined and statusbit['printable'] == '1' ? 'oui'| trans : 'non'| trans }}</td>
{% else %}
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
{% endif %}
</tr>
{% endfor %}