2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2021-05-29 18:22:51 +02:00
|
|
|
{% extends 'bootstrap/base.html' %}
|
|
|
|
|
2021-07-04 12:32:13 +02:00
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
2023-04-14 15:15:54 +02:00
|
|
|
<link rel="stylesheet" href="{{ scu.STATIC_DIR }}/css/scodoc.css">
|
|
|
|
<link rel="stylesheet" href="{{ scu.STATIC_DIR }}/css/entreprises.css">
|
2021-07-04 12:32:13 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-05-29 18:22:51 +02:00
|
|
|
{% block title %}
|
2022-03-22 22:14:45 +01:00
|
|
|
{% if title %}{{ title }} - ScoDoc{% else %}ScoDoc{% endif %}
|
2021-05-29 18:22:51 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block navbar %}
|
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
|
|
|
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2021-07-04 12:32:13 +02:00
|
|
|
<a class="navbar-brand" href="{{ url_for('scodoc.index') }}">ScoDoc</a>
|
2021-05-29 18:22:51 +02:00
|
|
|
</div>
|
2023-01-30 22:25:17 +01:00
|
|
|
|
2021-05-29 18:22:51 +02:00
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
2023-01-30 22:25:17 +01:00
|
|
|
|
2021-05-29 18:22:51 +02:00
|
|
|
<ul class="nav navbar-nav">
|
2023-01-30 22:25:17 +01:00
|
|
|
{% if current_user.is_administrator() %}
|
2021-10-17 11:19:01 +02:00
|
|
|
<li><a href="{{ url_for('scodoc.configuration') }}">Configuration</a></li>
|
2023-01-30 22:25:17 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if g.scodoc_dept %}
|
2021-10-17 11:19:01 +02:00
|
|
|
<li><a href="{{
|
|
|
|
url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)
|
|
|
|
}}">Dept. {{ g.scodoc_dept }}</a></li>
|
2023-01-30 22:25:17 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if not current_user.is_anonymous and
|
|
|
|
current_user.has_permission(current_user.Permission.RelationsEntreprisesView, None) and scu and
|
|
|
|
scu.is_entreprises_enabled() %}
|
2022-01-31 18:22:54 +01:00
|
|
|
<li><a href="{{ url_for('entreprises.index') }}">Entreprises</a></li>
|
2023-01-30 22:25:17 +01:00
|
|
|
{% endif %}
|
2021-10-17 11:19:01 +02:00
|
|
|
</ul>
|
2021-05-29 18:22:51 +02:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{% if current_user.is_anonymous %}
|
2021-09-10 23:18:27 +02:00
|
|
|
<li><a href="{{ url_for('auth.login') }}">connexion</a></li>
|
2021-05-29 18:22:51 +02:00
|
|
|
{% else %}
|
2021-09-10 23:18:27 +02:00
|
|
|
<li>{% if current_user.dept %}
|
|
|
|
<a href="{{ url_for('users.user_info_page', scodoc_dept=current_user.dept, user_name=current_user.user_name )
|
|
|
|
}}">{{current_user.user_name}} ({{current_user.dept}})</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="">{{current_user.user_name}}</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
<li class="logout"><a href="{{ url_for('auth.logout') }}">déconnexion</a></li>
|
2021-05-29 18:22:51 +02:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2022-02-26 10:09:14 +01:00
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% for category, message in messages %}
|
|
|
|
<div class="alert alert-info alert-{{ category }}" role="alert">{{ message }}</div>
|
|
|
|
{% endfor %}
|
2021-05-29 18:22:51 +02:00
|
|
|
{% endwith %}
|
|
|
|
|
|
|
|
{# application content needs to be provided in the app_content block #}
|
|
|
|
{% block app_content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
{{ moment.include_moment() }}
|
|
|
|
{{ moment.lang(g.locale) }}
|
|
|
|
<script>
|
|
|
|
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|