2017-06-12 01:51:10 +02:00
|
|
|
{% extends "kfet/base_form.html" %}
|
2016-08-04 05:21:04 +02:00
|
|
|
{% block extra_head %}{{ form.media }}{% endblock %}
|
|
|
|
|
2016-08-12 10:03:39 +02:00
|
|
|
{% block title %}Nouvelle caisse{% endblock %}
|
2017-05-20 13:57:21 +02:00
|
|
|
{% block header-title %}Création d'une caisse{% endblock %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
2017-06-12 01:51:10 +02:00
|
|
|
{% block main %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
2017-06-12 01:51:10 +02:00
|
|
|
{% include "kfet/form_full_snippet.html" with authz=perms.kfet.add_checkout submit_text="Enregistrer" %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#id_valid_from').datetimepicker({
|
|
|
|
format : 'YYYY-MM-DD HH:mm',
|
|
|
|
stepping : 5,
|
|
|
|
locale : 'fr',
|
|
|
|
showTodayButton: true,
|
|
|
|
});
|
|
|
|
$('#id_valid_to').datetimepicker({
|
|
|
|
format : 'YYYY-MM-DD HH:mm',
|
|
|
|
stepping : 5,
|
|
|
|
useCurrent: false,
|
|
|
|
locale : 'fr',
|
|
|
|
showTodayButton: true,
|
|
|
|
});
|
|
|
|
$("#id_valid_from").on("dp.change", function (e) {
|
|
|
|
$('#id_valid_to').data("DateTimePicker").minDate(e.date);
|
|
|
|
});
|
|
|
|
$("#id_valid_to").on("dp.change", function (e) {
|
|
|
|
$('#id_valid_from').data("DateTimePicker").maxDate(e.date);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|