Timepicker sur toutes les pages.

This commit is contained in:
Emmanuel Viennet 2024-10-17 11:40:12 +02:00
parent 9e7b169998
commit 0b5b0f8079
8 changed files with 61 additions and 66 deletions

View File

@ -375,12 +375,11 @@ def evaluation_create_form(
+ render_template( + render_template(
"scodoc/help/evaluations.j2", is_apc=is_apc, modimpl=modimpl "scodoc/help/evaluations.j2", is_apc=is_apc, modimpl=modimpl
) )
+ render_template("sco_timepicker.j2")
), ),
) )
elif tf[0] == -1: if tf[0] == -1:
return flask.redirect(dest_url) return flask.redirect(dest_url)
else:
# form submission # form submission
args = tf[2] args = tf[2]
# modifie le codage des dates # modifie le codage des dates

View File

@ -121,5 +121,4 @@ div.submit > input {
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script> <script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
{% include "sco_timepicker.j2" %}
{% endblock scripts %} {% endblock scripts %}

View File

@ -191,7 +191,6 @@ div.submit > input {
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script> <script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
{% include "sco_timepicker.j2" %}
<script> <script>
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
// On récupère les boutons de suppression de fichiers // On récupère les boutons de suppression de fichiers

View File

@ -176,5 +176,4 @@
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script> <script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
{% include "sco_timepicker.j2" %}
{% endblock scripts %} {% endblock scripts %}

View File

@ -12,7 +12,6 @@
<script src="{{scu.STATIC_DIR}}/js/groups_view.js"></script> <script src="{{scu.STATIC_DIR}}/js/groups_view.js"></script>
<script src="{{scu.STATIC_DIR}}/js/date_utils.js"></script> <script src="{{scu.STATIC_DIR}}/js/date_utils.js"></script>
<script src="{{scu.STATIC_DIR}}/js/assiduites.js"></script> <script src="{{scu.STATIC_DIR}}/js/assiduites.js"></script>
{% include "sco_timepicker.j2" %}
<script> <script>

View File

@ -75,7 +75,7 @@
} }
th { th {
z-index: 1; z-index: 0;
} }
.premier th { .premier th {
@ -205,7 +205,6 @@
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script> <script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
<script src="{{scu.STATIC_DIR}}/js/assiduites.js"></script> <script src="{{scu.STATIC_DIR}}/js/assiduites.js"></script>
<script src="{{scu.STATIC_DIR}}/js/date_utils.js"></script> <script src="{{scu.STATIC_DIR}}/js/date_utils.js"></script>
{% include "sco_timepicker.j2" %}
<script> <script>

View File

@ -103,6 +103,8 @@
</script> </script>
{% include "sco_timepicker.j2" %}
{% endblock %} {% endblock %}
{% macro render_field_errors(form, field_name) %} {% macro render_field_errors(form, field_name) %}

View File

@ -51,7 +51,6 @@
{% endblock app_content %} {% endblock app_content %}
{% block scripts %} {% block scripts %}
{{super()}} {{super()}}
{% include "sco_timepicker.j2" %}
<script src="{{scu.STATIC_DIR}}/js/groups_view.js"></script> <script src="{{scu.STATIC_DIR}}/js/groups_view.js"></script>
<script src="{{scu.STATIC_DIR}}/libjs/purl.js"></script> <script src="{{scu.STATIC_DIR}}/libjs/purl.js"></script>
{% endblock scripts %} {% endblock scripts %}