1
0
forked from ScoDoc/ScoDoc
ScoDoc/app/templates/sco_page.j2

67 lines
2.2 KiB
Plaintext
Raw Normal View History

{# -*- Base des pages ordinaires, dans départements -*- #}
2023-11-15 20:38:51 +01:00
{% extends 'babase.j2' %}
2021-12-04 21:06:32 +01:00
{% block styles %}
{{super()}}
2021-12-04 22:19:20 +01:00
<link type="text/css" rel="stylesheet"
2023-04-14 23:36:36 +02:00
href="{{scu.STATIC_DIR}}/libjs/jquery-ui-1.10.4.custom/css/smoothness/jquery-ui-1.10.4.custom.min.css" />
<link type="text/css" rel="stylesheet"
href="{{scu.STATIC_DIR}}/libjs/timepicker-1.3.5/jquery.timepicker.min.css" />
2023-04-14 23:36:36 +02:00
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc.css">
<link href="{{scu.STATIC_DIR}}/css/menu.css" rel="stylesheet" type="text/css" />
<link href="{{scu.STATIC_DIR}}/css/gt_table.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="{{scu.STATIC_DIR}}/libjs/qtip/jquery.qtip-3.0.3.min.css" />
{#
2023-04-14 23:36:36 +02:00
<link href="{{scu.STATIC_DIR}}/css/tooltip.css" rel="stylesheet" type="text/css" /> #}
<link rel="stylesheet" type="text/css" href="{{scu.STATIC_DIR}}/DataTables/datatables.min.css" />
2021-12-04 21:06:32 +01:00
{% endblock %}
{% block title %}
2021-12-18 12:16:49 +01:00
{% if title %}{{ title }} - ScoDoc{% else %}ScoDoc{% endif %}
2021-12-04 21:06:32 +01:00
{% endblock %}
{% block content %}
{% block scodoc_sidebar %}
{% include "sidebar.j2" %}
{% endblock %}
2021-12-04 21:06:32 +01:00
2021-12-08 15:11:05 +01:00
<div id="gtrcontent" class="gtrcontent">
{% include "flashed_messages.j2" %}
2021-12-04 21:06:32 +01:00
{% if sco.sem %}
2021-12-18 12:16:49 +01:00
{% block formsemestre_header %}
{% include "formsemestre_header.j2" %}
2021-12-18 12:16:49 +01:00
{% endblock %}
2021-12-04 21:06:32 +01:00
{% endif %}
<div class="sco-app-content">
{% block app_content %}
page vide
{% endblock %}
</div>
2021-12-04 21:06:32 +01:00
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
2023-04-14 23:36:36 +02:00
<script src="{{scu.STATIC_DIR}}/libjs/menu.js"></script>
<script src="{{scu.STATIC_DIR}}/libjs/bubble.js"></script>
<script src="{{scu.STATIC_DIR}}/js/scodoc.js"></script>
<script src="{{scu.STATIC_DIR}}/DataTables/datatables.min.js"></script>
2021-12-04 21:06:32 +01:00
<script>
2021-12-04 22:19:20 +01:00
window.onload = function () { enableTooltips("gtrcontent") };
2021-12-04 21:06:32 +01:00
2023-11-15 20:38:51 +01:00
const SCO_URL = "{{ url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)[:-11] }}";
2021-12-04 21:06:32 +01:00
</script>
2023-11-15 20:38:51 +01:00
{% endblock %}
2023-12-05 21:04:38 +01:00
{% macro render_field_errors(form, field_name) %}
{% if form[field_name].errors %}
<div>
{% for error in form[field_name].errors %}
<span class="wtf-field-error">{{ error }}</span>
{% endfor %}
</div>
{% endif %}
{% endmacro %}