2024-04-06 12:16:53 +02:00
|
|
|
{%- extends 'babase.j2' -%}
|
2024-01-21 22:21:10 +01:00
|
|
|
{# -*- Base des pages ordinaires, dans départements -*- #}
|
2021-12-04 21:06:32 +01:00
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
2024-08-24 18:50:41 +02:00
|
|
|
<link type="text/css" rel="stylesheet" href="{{scu.STATIC_DIR}}/libjs/qtip/jquery.qtip-3.0.3.min.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{scu.STATIC_DIR}}/DataTables/datatables.min.css" />
|
2023-04-14 23:36:36 +02:00
|
|
|
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc.css">
|
2024-07-22 16:53:50 +02:00
|
|
|
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc97.css">
|
2024-08-20 15:03:41 +02:00
|
|
|
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc9_mobile.css">
|
2023-04-14 23:36:36 +02:00
|
|
|
<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" />
|
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 %}
|
2024-07-22 16:53:50 +02:00
|
|
|
<!-- sco_page revamp -->
|
2024-08-14 14:44:19 +02:00
|
|
|
<div id="mobileNav" mobile="true">
|
|
|
|
<!-- Logo ScoDoc -->
|
2024-08-19 17:05:02 +02:00
|
|
|
<img src="{{url_for('static', filename='icons/logo_rectangle.png')}}" alt="Logo ScoDoc" id="logo-scodoc">
|
2024-08-14 14:44:19 +02:00
|
|
|
{% block mobileSemestre %}
|
|
|
|
<!-- Titre Semestre -->
|
|
|
|
<!-- Icone Menu Semestre -->
|
|
|
|
{% endblock mobileSemestre %}
|
2024-07-22 16:53:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="scodoc-container">
|
|
|
|
<div class="app-corner">
|
2024-08-14 14:49:59 +02:00
|
|
|
<div class="hamburger" desktop="true">
|
2024-07-22 16:53:50 +02:00
|
|
|
<div class="scodoc-index"><a class="sco-title" href="{{
|
|
|
|
url_for('scodoc.index', scodoc_dept=g.scodoc_dept) }}"
|
|
|
|
>ScoDoc</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="toggle-sidebar" onclick="toggleSidebar()">
|
|
|
|
<img id="toggle-sidebar-img" src="{{scu.STATIC_DIR}}/icons/back.svg" width="12px" alt="toggle sidebar"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-09-10 23:16:27 +02:00
|
|
|
{% include "flashed_messages.j2" %}
|
2024-08-16 01:11:06 +02:00
|
|
|
{% if sco.formsemestre %}
|
|
|
|
<div class="formsemestre-page-header">
|
|
|
|
{% if sco.formsemestre %}
|
|
|
|
{% block formsemestre_header %}
|
|
|
|
{% include "formsemestre_header.j2" %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2024-07-22 16:53:50 +02:00
|
|
|
<div id="sidebar">
|
|
|
|
{% include "sidebar.j2" %}
|
|
|
|
</div>
|
2021-12-04 21:06:32 +01:00
|
|
|
|
2024-07-22 16:53:50 +02:00
|
|
|
<div id="app-content">
|
|
|
|
<div id="gtrcontent" class="gtrcontent">
|
|
|
|
<div class="sco-app-content">
|
|
|
|
{% block app_content %}
|
|
|
|
{{ content | safe }}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-07 19:52:22 +02:00
|
|
|
</div>
|
2024-03-20 18:13:19 +01:00
|
|
|
</div>
|
2024-07-22 16:53:50 +02:00
|
|
|
<!-- sco_page -->
|
2021-12-04 21:06:32 +01:00
|
|
|
{% 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>
|
2024-08-16 01:11:06 +02:00
|
|
|
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
|
2023-04-14 23:36:36 +02:00
|
|
|
<script src="{{scu.STATIC_DIR}}/DataTables/datatables.min.js"></script>
|
2021-12-04 21:06:32 +01:00
|
|
|
<script>
|
2024-08-19 12:28:34 +02:00
|
|
|
let no_sidebar = {{ 'true' if no_sidebar else 'false' }};
|
|
|
|
|
2024-06-25 19:08:48 +02:00
|
|
|
window.onload = function () {
|
|
|
|
if (document.getElementById('gtrcontent')) {
|
|
|
|
enableTooltips("gtrcontent");
|
|
|
|
}
|
|
|
|
if (document.getElementById('sidebar')) {
|
|
|
|
enableTooltips("sidebar");
|
|
|
|
}
|
2024-08-14 14:44:19 +02:00
|
|
|
|
|
|
|
document.getElementById("logo-scodoc").addEventListener("click", function () {
|
|
|
|
toggleSidebarOffCanvas();
|
|
|
|
});
|
2024-08-19 12:28:34 +02:00
|
|
|
|
|
|
|
if (no_sidebar) {
|
|
|
|
toggleSidebar();
|
|
|
|
}
|
2024-06-25 19:08:48 +02:00
|
|
|
};
|
2024-04-10 18:40:32 +02:00
|
|
|
const SCO_URL = "{{ url_for('scolar.index_html', scodoc_dept=g.scodoc_dept) }}";
|
2024-07-22 16:53:50 +02:00
|
|
|
function toggleSidebar() {
|
|
|
|
document.getElementById('sidebar').classList.toggle('collapsed');
|
|
|
|
document.getElementById('app-content').classList.toggle('collapsed');
|
|
|
|
document.getElementById('toggle-sidebar-img').classList.toggle('collapsed');
|
2024-08-23 08:39:53 +02:00
|
|
|
document.querySelectorAll('.scodoc-index').forEach(element => {
|
|
|
|
element.classList.toggle('collapsed');
|
|
|
|
});
|
2024-07-22 16:53:50 +02:00
|
|
|
}
|
|
|
|
|
2021-12-04 21:06:32 +01:00
|
|
|
</script>
|
|
|
|
|
2024-10-17 11:40:12 +02:00
|
|
|
{% include "sco_timepicker.j2" %}
|
|
|
|
|
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 %}
|