2017-10-21 19:44:11 +11:00
|
|
|
{% extends "index.html" %}
|
2017-10-25 06:42:57 +11:00
|
|
|
{% block bodyheader %}
|
|
|
|
<body onload="javascript:update_componants();">
|
|
|
|
{% endblock %}
|
2017-10-21 19:44:11 +11:00
|
|
|
{% block title %}Liste des composants{% endblock %}
|
|
|
|
{% block top_menu %}
|
2017-10-27 09:41:13 +11:00
|
|
|
<span class='top_menu_item_selected' onclick='javascript:document.location="/componants";'>Gestion des composants</span>
|
2017-10-21 19:44:11 +11:00
|
|
|
<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 %}
|
2017-10-22 18:01:42 +11:00
|
|
|
<!-- ----------------------------------------------------
|
|
|
|
Recherche
|
|
|
|
----------------------------------------------------- -->
|
2017-10-27 09:41:13 +11:00
|
|
|
<div id='search' class='main_block'>
|
|
|
|
<text>Recherche:</text>
|
|
|
|
<div class='input_block'>
|
|
|
|
<label>Référence (unique)</label>
|
|
|
|
<input
|
|
|
|
id='reference'
|
|
|
|
type='text'
|
|
|
|
onkeyup='javascript:search_componants_by_reference(this, "text");'
|
|
|
|
maxlength='20'
|
|
|
|
title='Référence interne unique (max. 20)'
|
|
|
|
placeholder='Référence interne unique (max. 20)'
|
|
|
|
value='{{ reference }}' />
|
|
|
|
</div>
|
|
|
|
<div class='input_block'>
|
|
|
|
<label>Désignation</label>
|
|
|
|
<input
|
|
|
|
id='designation'
|
|
|
|
type='text'
|
|
|
|
onkeyup='javascript:search_componants_by_designation(this, "text");'
|
|
|
|
maxlength='50'
|
|
|
|
title='Désignation (max. 50)'
|
|
|
|
placeholder='Désignation (max. 50)'
|
|
|
|
value='{{ designation }}' />
|
|
|
|
</div>
|
|
|
|
<div class='input_block'>
|
|
|
|
<label>Emplacement</label>
|
|
|
|
<input
|
|
|
|
id='place'
|
|
|
|
type='text'
|
|
|
|
onkeyup='javascript:search_componants_by_place(this, "text");'
|
|
|
|
maxlength='15'
|
|
|
|
title='Emplacement (max. 15)'
|
|
|
|
placeholder='Emplacement (max. 15)'
|
|
|
|
value='{{ place }}' />
|
|
|
|
</div>
|
|
|
|
<div class='input_block'>
|
|
|
|
<label>Fournisseur</label>
|
|
|
|
<select
|
|
|
|
id='provider_id'
|
|
|
|
onchange='javascript:search_componants_by_provider(this, "numeric");'
|
|
|
|
title='Fournisseur'>
|
|
|
|
{% for prov in providers %}
|
|
|
|
{% set selected = '' %}
|
|
|
|
{% if prov.id == provider_id %}
|
|
|
|
{% set selected = 'selected' %}
|
|
|
|
{% endif %}
|
|
|
|
<option value='{{ prov.id }}' {{ selected }}>{{ prov.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='button_block'>
|
|
|
|
<input
|
|
|
|
type='image'
|
|
|
|
src='/static/images/search.png'
|
|
|
|
title='Rechercher'
|
|
|
|
onclick='javascript:update_componants("reference");'/>
|
|
|
|
<input
|
|
|
|
type='image'
|
|
|
|
src='/static/images/save.png'
|
|
|
|
title='Enregistrer'
|
|
|
|
onclick='javascript:new_componant();'/>
|
|
|
|
</div>
|
2017-10-22 18:01:42 +11:00
|
|
|
</div>
|
|
|
|
<!-- ----------------------------------------------------
|
|
|
|
Resultat
|
|
|
|
----------------------------------------------------- -->
|
2017-10-27 09:41:13 +11:00
|
|
|
<div id='result_container' class='main_block'>
|
2017-10-23 22:42:49 +11:00
|
|
|
|
2017-10-21 19:44:11 +11:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|