gestioCOF/kfet/templates/kfet/checkout_create.html

38 lines
1 KiB
HTML
Raw Normal View History

{% extends "kfet/base_form.html" %}
{% block extra_head %}{{ form.media }}{% endblock %}
{% block title %}Nouvelle caisse{% endblock %}
{% block header-title %}Création d'une caisse{% endblock %}
{% block main %}
{% include "kfet/form_full_snippet.html" with authz=perms.kfet.add_checkout submit_text="Enregistrer" %}
<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 %}