2016-02-01 16:35:55 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
2024-07-23 22:16:31 +00:00
|
|
|
<head>
|
|
|
|
{% block head %}
|
|
|
|
<title>{% block title %}{% trans %}Welcome!{% endtrans %}{% endblock %} - Association des Étudiants UTBM</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="shortcut icon" href="{{ static('core/img/favicon.ico') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/base.css') }}">
|
2024-09-17 21:42:05 +00:00
|
|
|
<link rel="stylesheet" href="{{ static('core/style.scss') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/markdown.scss') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/header.scss') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/navbar.scss') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/pagination.scss') }}">
|
2023-03-30 12:38:40 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block jquery_css %}
|
2024-10-13 21:26:18 +00:00
|
|
|
{# Thile file is quite heavy (around 250kb), so declaring it in a block allows easy removal #}
|
2024-11-19 00:56:55 +00:00
|
|
|
<link rel="stylesheet" href="{{ static('bundled/jquery-ui-index.css') }}">
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endblock %}
|
2024-11-18 14:36:05 +00:00
|
|
|
<link rel="preload" as="style" href="{{ static('bundled/fontawesome-index.css') }}" onload="this.onload=null;this.rel='stylesheet'">
|
|
|
|
<noscript><link rel="stylesheet" href="{{ static('bundled/fontawesome-index.css') }}"></noscript>
|
2018-12-18 12:54:53 +00:00
|
|
|
|
2024-10-20 16:35:55 +00:00
|
|
|
<script src="{{ url('javascript-catalog') }}"></script>
|
2024-11-19 00:56:55 +00:00
|
|
|
<script type="module" src={{ static("bundled/core/components/include-index.ts") }}></script>
|
|
|
|
<script type="module" src="{{ static('bundled/alpine-index.js') }}"></script>
|
|
|
|
<script type="module" src="{{ static('bundled/htmx-index.js') }}"></script>
|
|
|
|
|
|
|
|
<!-- Jquery declared here to be accessible in every django widgets -->
|
|
|
|
<script src="{{ static('bundled/vendored/jquery.min.js') }}"></script>
|
|
|
|
<script src="{{ static('bundled/vendored/jquery-ui.min.js') }}"></script>
|
2024-07-23 22:16:31 +00:00
|
|
|
<script src="{{ static('core/js/script.js') }}"></script>
|
2024-08-01 17:02:29 +00:00
|
|
|
|
2023-03-30 12:38:40 +00:00
|
|
|
|
2024-09-17 21:42:05 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block additional_css %}{% endblock %}
|
|
|
|
{% block additional_js %}{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
</head>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
<body>
|
2017-09-01 16:31:48 +00:00
|
|
|
|
2024-10-13 21:26:18 +00:00
|
|
|
<!-- The token is always passed here to be accessible from the dom -->
|
|
|
|
<!-- See this workaround https://docs.djangoproject.com/en/2.0/ref/csrf/#acquiring-the-token-if-csrf-use-sessions-is-true -->
|
2024-07-23 22:16:31 +00:00
|
|
|
{% csrf_token %}
|
2024-10-13 21:26:18 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block header %}
|
|
|
|
{% if not popup %}
|
2024-10-13 21:26:18 +00:00
|
|
|
{% include "core/base/header.jinja" %}
|
2024-11-10 23:45:49 +00:00
|
|
|
|
|
|
|
{% block info_boxes %}
|
|
|
|
<div id="info_boxes">
|
|
|
|
{% set sith = get_sith() %}
|
|
|
|
{% if sith.alert_msg %}
|
|
|
|
<div id="alert_box">
|
|
|
|
{{ sith.alert_msg|markdown }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if sith.info_msg %}
|
|
|
|
<div id="info_box">
|
|
|
|
{{ sith.info_msg|markdown }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% else %}
|
|
|
|
<div id="popupheader">{{ user.get_display_name() }}</div>
|
|
|
|
{% endif %}
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endblock %}
|
2017-01-07 14:07:28 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block nav %}
|
|
|
|
{% if not popup %}
|
2024-11-10 23:45:49 +00:00
|
|
|
{% include "core/base/navbar.jinja" %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<div id="page">
|
|
|
|
|
|
|
|
<ul id="quick_notif">
|
|
|
|
{% for n in quick_notifs %}
|
|
|
|
<li>{{ n }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-09-04 17:24:53 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
<div id="content">
|
2024-10-13 21:26:18 +00:00
|
|
|
{% block tabs %}
|
|
|
|
{% include "core/base/tabs.jinja" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block errors%}
|
|
|
|
{% if error %}
|
|
|
|
{{ error }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block content %}
|
2016-08-11 02:24:32 +00:00
|
|
|
{% endblock %}
|
2024-07-23 22:16:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if not popup %}
|
|
|
|
<footer>
|
|
|
|
{% block footer %}
|
|
|
|
<div>
|
|
|
|
<a href="{{ url('core:page', 'contacts') }}">{% trans %}Contacts{% endtrans %}</a>
|
|
|
|
<a href="{{ url('core:page', 'legals') }}">{% trans %}Legal notices{% endtrans %}</a>
|
|
|
|
<a href="{{ url('core:page', 'copyright_agent') }}">{% trans %}Intellectual property{% endtrans %}</a>
|
|
|
|
<a href="{{ url('core:page', 'docs') }}">{% trans %}Help & Documentation{% endtrans %}</a>
|
|
|
|
<a href="{{ url('core:page', 'rd') }}">{% trans %}R&D{% endtrans %}</a>
|
|
|
|
</div>
|
|
|
|
<a href="https://discord.gg/XK9WfPsUFm" target="_link">
|
|
|
|
{% trans %}Site created by the IT Department of the AE{% endtrans %}
|
|
|
|
</a>
|
|
|
|
{% endblock %}
|
|
|
|
<br>
|
|
|
|
</footer>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block script %}
|
|
|
|
<script>
|
|
|
|
function showMenu() {
|
|
|
|
let navbar = document.getElementById("navbar-content");
|
|
|
|
const current = navbar.style.getPropertyValue("display");
|
|
|
|
navbar.style.setProperty("display", current === "none" ? "block" : "none");
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).keydown(function (e) {
|
|
|
|
if ($(e.target).is('input')) { return }
|
|
|
|
if ($(e.target).is('textarea')) { return }
|
|
|
|
if ($(e.target).is('select')) { return }
|
|
|
|
if (e.keyCode === 83) {
|
|
|
|
$("#search").focus();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
</body>
|
2016-02-01 16:35:55 +00:00
|
|
|
</html>
|