2017-10-28 09:43:19 +11:00
|
|
|
{% extends "index.html" %}
|
2017-10-28 20:22:59 +11:00
|
|
|
{% block bodyheader %}
|
|
|
|
<body onload="update_kit_composition({{ kit.id }});">
|
|
|
|
{% endblock %}
|
2017-10-28 09:43:19 +11:00
|
|
|
{% block title %}Éditer un kit{% endblock %}
|
|
|
|
{% block top_menu %}
|
2017-10-29 18:31:14 +11:00
|
|
|
<span class='top_menu_item' onclick='javascript:document.location="/kits";'>Gérer les kits</span>
|
2017-10-28 09:43:19 +11:00
|
|
|
<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>
|
2017-10-28 20:22:59 +11:00
|
|
|
<div id='kit_composition' class='main_block'>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2017-10-28 09:43:19 +11:00
|
|
|
{% endblock %}
|