2017-10-28 09:43:19 +11:00
|
|
|
<div class='main_block'>
|
|
|
|
<text>Résultat:
|
|
|
|
{% set ss='' %}
|
|
|
|
{% if row_count > 1 %}
|
|
|
|
{% set ss='s' %}
|
|
|
|
{% endif %}
|
|
|
|
{{ row_count }} objet{{ ss }} selectionné{{ ss }}
|
|
|
|
</text>
|
|
|
|
<div class='row_block border_bottom'>
|
|
|
|
<label style='width: 209px;' onclick='javascript:update_kits_by_name("{{ order }}");'>Nom</label>
|
2017-10-29 18:31:14 +11:00
|
|
|
<label class='border_left' style='width: 600px;' onclick='javascript:update_kits_by_designation("{{ order }}");'>Désignation</label>
|
|
|
|
<label class='border_left' style='width: 99px;' style='cursor: default;'>Max dispo</label>
|
2017-10-28 09:43:19 +11:00
|
|
|
<label class='border_left' style='width: 89px;' style='cursor: default;'>Action</label>
|
|
|
|
</div>
|
|
|
|
{% set row_class = cycler('odd', 'even') %}
|
|
|
|
{% for kit in kits %}
|
|
|
|
<div class='row_block {{ row_class.next() }}'>
|
2017-10-29 18:31:14 +11:00
|
|
|
<text style='width: 199px;' title='{{ kit.name }}'>{{ kit.name }}</text>
|
|
|
|
<text class='border_left' style='width: 590px;' title='{{ kit.designation }}'>{{ kit.designation }}</text>
|
|
|
|
{% set sclass='red' %}
|
|
|
|
{% if kit. max_kit > 1 %}
|
|
|
|
{% set sclass='' %}
|
|
|
|
{% endif %}
|
|
|
|
<text class='border_left num {{ sclass }}' style='width: 89px;' title='{{ kit.max_kit }}'>{{ kit.max_kit }}</text>
|
2017-10-28 09:43:19 +11:00
|
|
|
<div class='action_bar_block border_left' style='width: 89px;'>
|
|
|
|
<input
|
|
|
|
type='image'
|
|
|
|
src='/static/images/edit.png'
|
|
|
|
title='Éditer'
|
|
|
|
onclick='javascript:document.location="/kits/{{ kit.id }}"'/>
|
|
|
|
<input
|
|
|
|
type='image'
|
|
|
|
src='/static/images/trash.png'
|
|
|
|
title='Supprimer'
|
|
|
|
onclick='javascript:confirm_kit_delete()?document.location="/kits/delete/{{ kit.id }}":false;'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<div class='nav_page_block border_top'>
|
|
|
|
<text>
|
|
|
|
<span class='prev_page' onclick='javascript:k_previous_page({{ prevhop }});'><</span>
|
|
|
|
<span class='page_num'>{{ page }} / {{ page_count }}</span>
|
|
|
|
<span class='next_page' onclick='javascript:k_next_page({{ nexthop }})'>></span>
|
|
|
|
</text>
|
|
|
|
</div>
|
|
|
|
</div>
|