forked from DGNum/gestioCOF
e60e347a53
- kfet/base_col_1.html for one column content. - kfet/base_col_2.html for two columns content (left for fixed content, right for main content).
85 lines
3 KiB
HTML
85 lines
3 KiB
HTML
{% extends "kfet/base_col_1.html" %}
|
|
{% load widget_tweaks %}
|
|
|
|
{% block title %}Nouvelle commande{% endblock %}
|
|
{% block header-title %}Création d'une commande {{ supplier.name }}{% endblock %}
|
|
|
|
{% block main-size %}col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2{% endblock %}
|
|
|
|
{% block main-content %}
|
|
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<div class="table-responsive">
|
|
<table class="table table-condensed text-center">
|
|
<thead>
|
|
<tr>
|
|
<td rowspan="2">Article</td>
|
|
<td colspan="{{ scale|length }}">Ventes
|
|
<span class='glyphicon glyphicon-question-sign' title="Ventes des 5 dernières semaines" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">V. moy.<br>
|
|
<span class='glyphicon glyphicon-question-sign' title="Moyenne des ventes" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">E.T.<br>
|
|
<span class='glyphicon glyphicon-question-sign' title="Écart-type des ventes" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">Prév.<br>
|
|
<span class='glyphicon glyphicon-question-sign' title="Prévision de ventes" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">Stock</td>
|
|
<td rowspan="2">Box<br>
|
|
<span class='glyphicon glyphicon-question-sign' title="Capacité d'une boite" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">Rec.<br>
|
|
<span class='glyphicon glyphicon-question-sign' title="Quantité conseillée" data-placement="bottom"></span>
|
|
</td>
|
|
<td rowspan="2">Commande</td>
|
|
</tr>
|
|
<tr>
|
|
{% for label in scale.get_labels %}
|
|
<td>{{ label }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for form in formset %}
|
|
{% ifchanged form.category %}
|
|
<tr class='section text-left'>
|
|
<td colspan="{{ scale|length|add:'8' }}">{{ form.category_name }}</td>
|
|
</tr>
|
|
{% endifchanged %}
|
|
<tr>
|
|
{{ form.article }}
|
|
<td>{{ form.name }}</td>
|
|
{% for v_chunk in form.v_all %}
|
|
<td>{{ v_chunk }}</td>
|
|
{% endfor %}
|
|
<td>{{ form.v_moy }}</td>
|
|
<td>{{ form.v_et }}</td>
|
|
<td>{{ form.v_prev }}</td>
|
|
<td>{{ form.stock }}</td>
|
|
<td>{{ form.box_capacity|default:"" }}</td>
|
|
<td>{{ form.c_rec }}</td>
|
|
<td class="nopadding">{{ form.quantity_ordered | add_class:"form-control" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{ formset.management_form }}
|
|
{% if not perms.kfet.add_inventory %}
|
|
<div class='auth-form form-horizontal'>
|
|
{% include "kfet/form_authentication_snippet.html" %}
|
|
</div>
|
|
{% endif %}
|
|
<input type="submit" value="Enregistrer" class="btn btn-primary btn-lg btn-block">
|
|
</form>
|
|
|
|
<script type='text/javascript'>
|
|
$(document).ready(function () {
|
|
$('.glyphicon-question-sign').tooltip({'html': true}) ;
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|