Add modeline to all jinja2 templates

This commit is contained in:
Emmanuel Viennet 2021-12-28 16:17:07 +01:00
parent 0fe5cdb409
commit 25deaaae7f
34 changed files with 74 additions and 41 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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>

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{% extends 'bootstrap/base.html' %} {% extends 'bootstrap/base.html' %}
{% block styles %} {% block styles %}

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{% extends "sco_page.html" %} {% extends "sco_page.html" %}
{% block styles %} {% block styles %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{% extends "sco_page.html" %} {% extends "sco_page.html" %}
{% block app_content %} {% block app_content %}

View File

@ -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 %}

View File

@ -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>

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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,

View File

@ -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 %}

View File

@ -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">

View File

@ -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 %}

View File

@ -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">

View File

@ -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}}">

View File

@ -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.

View File

@ -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>

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{# Informations sur une UE #} {# Informations sur une UE #}
{% extends "sco_page.html" %} {% extends "sco_page.html" %}

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{% extends 'bootstrap/base.html' %} {% extends 'bootstrap/base.html' %}
{% block styles %} {% block styles %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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>

View File

@ -1,3 +1,4 @@
{# -*- mode: jinja-html -*- #}
{% extends 'base.html' %} {% extends 'base.html' %}
{% block app_content %} {% block app_content %}

View File

@ -1,4 +1,4 @@
{# -*- mode: jinja-raw -*- #}
Importation des photo effectuée Importation des photo effectuée
{% if ignored_zipfiles %} {% if ignored_zipfiles %}

View File

@ -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 #}

View File

@ -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>