forked from ScoDoc/ScoDoc
Add modeline to all jinja2 templates
This commit is contained in:
parent
0fe5cdb409
commit
25deaaae7f
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
@ -5,14 +6,14 @@
|
|||||||
|
|
||||||
<h2>Utilisateur: {{user.user_name}} ({{'actif' if user.active else 'fermé'}})</h2>
|
<h2>Utilisateur: {{user.user_name}} ({{'actif' if user.active else 'fermé'}})</h2>
|
||||||
<p>
|
<p>
|
||||||
<b>Login :</b> {{user.user_name}}<br/>
|
<b>Login :</b> {{user.user_name}}<br>
|
||||||
<b>Nom :</b> {{user.nom or ""}}<br/>
|
<b>Nom :</b> {{user.nom or ""}}<br>
|
||||||
<b>Prénom :</b> {{user.prenom or ""}}<br/>
|
<b>Prénom :</b> {{user.prenom or ""}}<br>
|
||||||
<b>Mail :</b> {{user.email}}<br/>
|
<b>Mail :</b> {{user.email}}<br>
|
||||||
<b>Roles :</b> {{user.get_roles_string()}}<br/>
|
<b>Roles :</b> {{user.get_roles_string()}}<br>
|
||||||
<b>Dept :</b> {{user.dept or ""}}<br/>
|
<b>Dept :</b> {{user.dept or ""}}<br>
|
||||||
<b>Dernière modif mot de passe:</b>
|
<b>Dernière modif mot de passe:</b>
|
||||||
{{user.date_modif_passwd.isoformat() if user.date_modif_passwd else ""}}<br/>
|
{{user.date_modif_passwd.isoformat() if user.date_modif_passwd else ""}}<br>
|
||||||
<b>Date d'expiration:</b>
|
<b>Date d'expiration:</b>
|
||||||
{{user.date_expiration.isoformat() if user.date_expiration else "(sans limite)"}}
|
{{user.date_expiration.isoformat() if user.date_expiration else "(sans limite)"}}
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'bootstrap/base.html' %}
|
{% extends 'bootstrap/base.html' %}
|
||||||
|
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "sco_page.html" %}
|
{% extends "sco_page.html" %}
|
||||||
|
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "sco_page.html" %}
|
{% extends "sco_page.html" %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "sco_page.html" %}
|
{% extends "sco_page.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% macro render_field(field) %}
|
{% macro render_field(field) %}
|
||||||
<div>
|
<div>
|
||||||
<span class="wtf-field">{{ field.label }} :</span>
|
<span class="wtf-field">{{ field.label }} :</span>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
{% block title %}Une erreur est survenue !{% endblock %}
|
{% block title %}Une erreur est survenue !{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Une erreur est survenue !</h1>
|
<h1>Une erreur est survenue !</h1>
|
||||||
<p>Oups...</tt> <span style="color:red;"><b>ScoDoc version <span style="font-size: 120%;">{{SCOVERSION}}</span></b></span> a
|
<p>Oups...</tt> <span style="color:red;"><b>ScoDoc version
|
||||||
un problème, désolé.</p>
|
<span style="font-size: 120%;">{{SCOVERSION}}</span></b></span>
|
||||||
|
a un problème, désolé.</p>
|
||||||
<p><tt style="font-size:60%">{{date}}</tt></p>
|
<p><tt style="font-size:60%">{{date}}</tt></p>
|
||||||
|
|
||||||
<p> Si le problème persiste, contacter l'administrateur de votre site,
|
<p> Si le problème persiste, contacter l'administrateur de votre site,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{# Description un semestre (barre de menu et infos) #}
|
{# Description un semestre (barre de menu et infos) #}
|
||||||
<!-- formsemestre_header -->
|
<!-- formsemestre_header -->
|
||||||
<div class="formsemestre_page_title">
|
<div class="formsemestre_page_title">
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{# Chapeau description d'une formation #}
|
{# Chapeau description d'une formation #}
|
||||||
|
|
||||||
<div class="formation_descr">
|
<div class="formation_descr">
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{# Édition liste modules APC (SAÉ ou ressources) #}
|
{# Édition liste modules APC (SAÉ ou ressources) #}
|
||||||
|
|
||||||
<div class="formation_list_modules formation_list_modules_{{module_type.name}}">
|
<div class="formation_list_modules formation_list_modules_{{module_type.name}}">
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
<h2>Édition des coefficients des modules vers les UEs</h2>
|
<h2>Édition des coefficients des modules vers les UEs</h2>
|
||||||
<div class="help">
|
<div class="help">
|
||||||
Double-cliquer pour changer une valeur.
|
Double-cliquer pour changer une valeur.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{# Édition liste UEs APC #}
|
{# Édition liste UEs APC #}
|
||||||
<div class="formation_list_ues">
|
<div class="formation_list_ues">
|
||||||
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
|
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{# Informations sur une UE #}
|
{# Informations sur une UE #}
|
||||||
{% extends "sco_page.html" %}
|
{% extends "sco_page.html" %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'bootstrap/base.html' %}
|
{% extends 'bootstrap/base.html' %}
|
||||||
|
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% import 'bootstrap/wtf.html' as wtf %}
|
{% import 'bootstrap/wtf.html' as wtf %}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{{ sco_header|safe }}
|
{{ sco_header|safe }}
|
||||||
<h2 class="formsemestre">Affectation aux groupes de {{ partition["partition_name"] }}</h2>
|
<h2 class="formsemestre">Affectation aux groupes de {{ partition["partition_name"] }}</h2>
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-raw -*- #}
|
||||||
Importation des photo effectuée
|
Importation des photo effectuée
|
||||||
|
|
||||||
{% if ignored_zipfiles %}
|
{% if ignored_zipfiles %}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{# Barre marge gauche ScoDoc #}
|
{# Barre marge gauche ScoDoc #}
|
||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
<!-- sidebar -->
|
<!-- sidebar -->
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
{# sidebar_common #}
|
{# sidebar_common #}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# -*- mode: jinja-html -*- #}
|
||||||
<h2 class="insidebar"><a href="{{
|
<h2 class="insidebar"><a href="{{
|
||||||
url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)
|
url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)
|
||||||
}}">Dépt. {{ prefs["DeptName"] }}</a>
|
}}">Dépt. {{ prefs["DeptName"] }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user