stock/templates/kit.html

48 lines
1.9 KiB
HTML
Raw Normal View History

{% extends "index.html" %}
{% block title %}Éditer un kit{% endblock %}
{% block top_menu %}
<span class='top_menu_item' onclick='javascript:document.location="/providers";'>Gérer les kits</span>
<span class='top_menu_item_selected' onclick='javascript:document.location="/kits/{{ kit.id }}";'>Éditer un kit</span>
{% endblock %}
{% block left_menu %}
<div class='left_menu_item' onclick='javascript:document.location="/";'>
Accueil
</div>
<div class='left_menu_item' onclick='javascript:document.location="/componants";'>
Composants
</div>
<div class='left_menu_item_selected' onclick='javascript:document.location="/kits";'>
Kits
</div>
<div class='left_menu_item' onclick='javascript:document.location="/providers";'>
Fournisseurs
</div>
{% endblock %}
{% block content %}
<div id='edit' class='main_block'>
<text>Kit:</text>
<div class='input_block'>
<label>Nom (unique)</label>
<input
id='name'
type='text'
onchange='javascript:update_kit(this, {{ kit.id }}, "text");'
maxlength='20'
title='Nom unique (max. 20)'
placeholder='Nom unique (max. 20)'
value='{{ kit.name }}' />
</div>
<div class='input_block'>
<label>Designation</label>
<input
id='designation'
type='text'
onchange='javascript:update_kit(this, {{ kit.id }}, "text");'
title='Adresse'
placeholder='Adresse'
value='{{ kit.designation }}' />
</div>
</div>
{% endblock %}