K-Fêt - Integrate wagtail to serve "static" pages of old K-Fêt website - Fixture "kfetcms/kfet_wagtail_17_05" contains a copy of old website (as in May 2017). - Media files can be got until end of June 17 at http://partage.eleves.ens.fr//files/604e6dea2ceebc66b1936c6b3f911744/kfet_media.tar.gz Login/logout - Update package django_cas_ng to last version. - Clean COFCASBackend. - Change CAS version to 3 (version used on eleves.ens). This enables the logout redirection (for CAS ofc). - Add messages and clean existing ones on login/logout (for both outsider and cas users). Misc - Update settings to bypass an incompability between debug-toolbar and wagtailmenus packages. - Better management of dev/test-specific urls (if debug-toolbar wasn't in INSTALLED_APPS, media files were not served). - UI improvements.
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-hover 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 class="text-left">{{ 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 %}
|