77 lines
3.2 KiB
HTML
77 lines
3.2 KiB
HTML
{% extends "index.html" %}
|
|
{% block title %}Éditer un fournisseur{% endblock %}
|
|
{% block top_menu %}
|
|
<span class='top_menu_item' onclick='javascript:document.location="/providers";'>Gérer les fournisseurs</span>
|
|
<span class='top_menu_item_selected' onclick='javascript:document.location="/providers/{{ provider.id }}";'>Éditer un fournisseur</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' onclick='javascript:document.location="/kits";'>
|
|
Kits
|
|
</div>
|
|
<div class='left_menu_item_selected' onclick='javascript:document.location="/providers";'>
|
|
Fournisseurs
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id='edit' class='main_block'>
|
|
<text>Fournisseur:</text>
|
|
<div class='input_block'>
|
|
<label>Nom (unique)</label>
|
|
<input
|
|
id='name'
|
|
type='text'
|
|
onchange='javascript:update_provider(this, {{ provider.id }}, "text");'
|
|
maxlength='20'
|
|
title='Nom unique (max. 20)'
|
|
placeholder='Nom unique (max. 20)'
|
|
value='{{ provider.name }}' />
|
|
</div>
|
|
<div class='input_block'>
|
|
<label>Adresse</label>
|
|
<input
|
|
id='address'
|
|
type='text'
|
|
onchange='javascript:update_provider(this, {{ provider.id }}, "text");'
|
|
title='Adresse'
|
|
placeholder='Adresse'
|
|
value='{{ provider.address }}' />
|
|
</div>
|
|
<div class='input_block'>
|
|
<label>@ mail</label>
|
|
<input
|
|
id='mail'
|
|
type='text'
|
|
onchange='javascript:update_provider(this, {{ provider.id }}, "text");'
|
|
title="Adresse e-mail"
|
|
placeholder="Adresse e-mail"
|
|
value='{{ provider.mail }}' />
|
|
</div>
|
|
<div class='input_block'>
|
|
<label>URL</label>
|
|
<input
|
|
id='url'
|
|
type='text'
|
|
onchange='javascript:update_provider(this, {{ provider.id }}, "text");'
|
|
title="URL"
|
|
placeholder="URL"
|
|
value='{{ provider.url }}' />
|
|
</div>
|
|
<div class='input_block'>
|
|
<label>Commentaires</label>
|
|
<input
|
|
id='comment'
|
|
type='text'
|
|
onchange='javascript:update_provider(this, {{ provider.id }}, "text");'
|
|
title='Commentaire'
|
|
value='{{ provider.comment }}' />
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|