stock/templates/kit.html
2017-10-29 08:31:14 +01:00

55 lines
2.1 KiB
HTML

{% extends "index.html" %}
{% block bodyheader %}
<body onload="update_kit_composition({{ kit.id }});">
{% endblock %}
{% block title %}Éditer un kit{% endblock %}
{% block top_menu %}
<span class='top_menu_item' onclick='javascript:document.location="/kits";'>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>
<div id='kit_composition' class='main_block'>
</div>
{% endblock %}