53 lines
3.4 KiB
HTML
53 lines
3.4 KiB
HTML
{% extends "index.html" %}
|
|
{% block title %}Liste des composants{% endblock %}
|
|
{% block top_menu %}
|
|
<span class='top_menu_item' onclick='javascript:document.location="/componants/new";'>Nouveau composant</span>
|
|
<span class='top_menu_item' onclick='javascript:document.location="/componants/search";'>Rechercher un composant</span>
|
|
<span class='top_menu_item' onclick='javascript:document.location="/componants/in";'>Entrée de stock</span>
|
|
<span class='top_menu_item' onclick='javascript:document.location="/componants/out";'>Sortie de stock</span>
|
|
{% endblock %}
|
|
|
|
{% block left_menu %}
|
|
<div class='left_menu_item' onclick='javascript:document.location="/";'>
|
|
Accueil
|
|
</div>
|
|
<div class='left_menu_item_selected' onclick='javascript:document.location="/componants";'>
|
|
Composants
|
|
</div>
|
|
<div class='left_menu_item' onclick='javascript:document.location="/kits";'>
|
|
Kits
|
|
</div>
|
|
<div class='left_menu_item' onclick='javascript:document.location="/providers";'>
|
|
Fournisseurs
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3>Liste des composants</h3>
|
|
<div class='block' style='border-top-style: none;'>
|
|
<label onclick='document.location="/componants?offset={{ offset }}&s=reference&o={{ norder }}";'>Référence</label>
|
|
<label onclick='document.location="/componants?offset={{ offset }}&s=designation&o={{ norder }}";' class='border_left' style='width: 440px;'>Désignation</label>
|
|
<label onclick='document.location="/componants?offset={{ offset }}&s=quantity&o={{ norder }}";' class='border_left' style='width: 100px;'>Quantité</label>
|
|
<label onclick='document.location="/componants?offset={{ offset }}&s=place&o={{ norder }}";' class='border_right border_left' style='width: 160px;'>Emplacement</label>
|
|
<label style='width: 95px; cursor: default;'>Action</label>
|
|
</div>
|
|
{% set row_class = cycler('odd', 'even') %}
|
|
{% for componant in componants %}
|
|
<div class='block {{ row_class.next() }}'>
|
|
<text style='width: 192px;'>{{ componant.reference }}</text>
|
|
<text class='border_left' style='width: 432px;'>{{ componant.designation }}</text>
|
|
<text class='num border_left' style='width: 92px;'>{{ componant.quantity }}</text>
|
|
<text class='num border_right border_left' style='width: 152px;'>{{ componant.place }}</text>
|
|
<div class='inner' style='width: 95px;'>
|
|
<text class='edit' onclick='javascript:document.location="/componants/{{ componant.id }}"'></text>
|
|
<text class='trash' onclick='javascript:confirm_delete()?document.location="/componants/delete/{{ componant.id }}":false;'></text>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
<div class='pages_nav_bar'>
|
|
<text><span class='prev_page' onclick='javascript:document.location="/componants?offset={{ prevhop }}&s={{ sort }}&o={{ order }}"'><</span></text>
|
|
<text><span class='page_num'>{{ page }} / {{ page_count }}</span></text>
|
|
<text><span class='next_page' onclick='javascript:document.location="/componants?offset={{ nexthop }}&s={{ sort }}&o={{ order }}"'>></span></text>
|
|
</div>
|
|
{% endblock %}
|