gestioCOF/kfet/templates/kfet/checkout_create.html
Aurélien Delobelle 1499c0bced Improvements for K-Fêt CMS.
K-Fêt - Wagtail
- Page content becomes a StreamField.
- GroupTeam snippet becomes a block for stream field.
- Navigation menu moved becomes a "flatmenu", preventing possible future conflicts.
- Page layout can be modified in wagtail admin.

K-Fêt
- Add shorthands for ukf account balance/article price.
- Cleaning stylesheets and templates.
2017-06-12 01:51:10 +02:00

37 lines
1 KiB
HTML

{% 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 %}