Compare commits
6 Commits
master
...
wip/webser
Author | SHA1 | Date |
---|---|---|
Frédéric Péters | eca214d040 | |
Serghei Mihai | 2ac4bc0c20 | |
Serghei Mihai | aac294ed1e | |
Serghei Mihai | 59630aae2f | |
Serghei Mihai | 8ebb4b6910 | |
Serghei Mihai | c3637724c8 |
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "common.html" %}
|
||||
{% block title %}Page inexistante{% endblock %}
|
||||
{% block content %}
|
||||
<div id="error-404">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "common.html" %}
|
||||
{% block title %}Erreur système{% endblock %}
|
||||
{% block content %}
|
||||
<div id="error-500">
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
{% extends theme_base %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block user-info %}
|
||||
{% if user.is_authenticated %}
|
||||
<div id="toplinks">
|
||||
<span>
|
||||
<a class="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
|
||||
{% if is_eservice_admin %}
|
||||
<a class="restricted" href="{{ wcs_url }}admin/">Administration</a>
|
||||
{% elif is_eservice_backoffice_user %}
|
||||
<a class="restricted" href="{{ wcs_url }}backoffice/">Back office</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div id="username">{{ user.first_name }} {{ user.last_name }}</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h2>Compte lecteur</h2>
|
||||
{% with data=compte_lecteur %}
|
||||
{% with data=compte_lecteur.data %}
|
||||
{% if data.d.ClientAccount.ShortAccount %}
|
||||
<p>Votre carte d'abonnement numéro {{ data.d.ClientAccount.Identity.BarCode }} est valable jusqu'au {{ data.d.ClientAccount.Identity.ExpirationDate }}.</p>
|
||||
<p>Vous avez actuellement {{ data.d.ClientAccount.ShortAccount.NombrePrets }} oeuvre(s) en prêt :
|
||||
|
|
|
@ -1,8 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
{% load combo %}
|
||||
{% extends "common.html" %}
|
||||
{% load combo gadjo i18n staticfiles %}
|
||||
|
||||
{% block title %}{{ page.title }}{% endblock %}
|
||||
|
||||
{% block extra_styles %}
|
||||
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "combo.style.css" %}" >
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block extra_scripts %}
|
||||
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
|
||||
<script src="{{site_base}}{% static 'js/combo.public.js' %}"></script>
|
||||
{% skeleton_extra_placeholder 'extra-head' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyargs %}
|
||||
{% skeleton_extra_placeholder 'bodyargs' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
{% skeleton_extra_placeholder 'content_header' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% show_menu %}
|
||||
{% endblock %}
|
||||
|
@ -10,3 +29,20 @@
|
|||
{% block content %}
|
||||
{% placeholder "content" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block user-info %}
|
||||
{% if user.is_authenticated %}
|
||||
<div id="toplinks">
|
||||
<span>
|
||||
<a class="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
|
||||
{% if is_eservice_admin %}
|
||||
<a class="restricted" href="{{ wcs_url }}admin/">Administration</a>
|
||||
{% elif is_eservice_backoffice_user %}
|
||||
<a class="restricted" href="{{ wcs_url }}backoffice/">Back office</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div id="username">{{ user.first_name }} {{ user.last_name }}</div>
|
||||
{% endif %}
|
||||
{% skeleton_extra_placeholder 'user-info' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
{% load i18n static %}
|
||||
{% load i18n staticfiles %}
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8"><!-- ☭ -->
|
||||
|
@ -8,8 +8,8 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="content-language" content="fr" />
|
||||
<title>Compte Citoyen :: Montpellier Méditerranée Métropole :: {% block title %}{% endblock %}</title>
|
||||
<link rel="shortcut icon" href="{% static "themes/django-montpellier/favicon.png" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static "themes/django-montpellier/style.css" %}" >
|
||||
<link rel="shortcut icon" href="{{ site_base }}{% static "themes/django-montpellier/favicon.png" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ site_base }}{% static "themes/django-montpellier/style.css" %}" >
|
||||
{% block extra_styles %}
|
||||
{% endblock %}
|
||||
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,700italic,400italic|Carme|Arvo' rel='stylesheet' type='text/css'>
|
||||
|
@ -26,26 +26,15 @@
|
|||
<div id="header">
|
||||
<div id="top">
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{{ site_agglo_montpellier_url }}/simplesamlphp/module.php/core/as_login.php?ReturnTo={{ site_agglo_montpellier_url }}&AuthId=default-sp" accesskey="1"><img src="{{ STATIC_URL }}/themes/django-montpellier/logo.png"
|
||||
<a href="{{ site_agglo_montpellier_url }}/simplesamlphp/module.php/core/as_login.php?ReturnTo={{ site_agglo_montpellier_url }}&AuthId=default-sp" accesskey="1"><img src="{{ site_base }}{% static "themes/django-montpellier/logo.png" %}"
|
||||
title="Montpellier Méditerranée Métropole" /></a>
|
||||
{% else %}
|
||||
<a href="{{ site_agglo_montpellier_url }}" accesskey="1"><img src="{% static "themes/django-montpellier/logo.png" %}"
|
||||
<a href="{{ site_agglo_montpellier_url }}" accesskey="1"><img src="{{ site_base }}{% static "themes/django-montpellier/logo.png" %}"
|
||||
title="Montpellier Méditerranée Métropole" /></a>
|
||||
{% endif %}
|
||||
<div class="region-header">
|
||||
{% if user.is_authenticated %}
|
||||
<div id="toplinks">
|
||||
<span>
|
||||
<a class="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
|
||||
{% if is_eservice_admin %}
|
||||
<a class="restricted" href="{{ wcs_url }}admin/">Administration</a>
|
||||
{% elif is_eservice_backoffice_user %}
|
||||
<a class="restricted" href="{{ wcs_url }}backoffice/">Back office</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div id="username">{{ user.first_name }} {{ user.last_name }}</div>
|
||||
{% endif %}
|
||||
{% block user-info %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% block messages %}
|
||||
|
@ -76,13 +65,14 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
<div id="menu">
|
||||
|
||||
{% block menu %}
|
||||
{% if user.is_authenticated %}
|
||||
<ul>
|
||||
<li id="top-menu-accueil" class="sibling">
|
||||
<a href="{{ portal_url }}">Accueil</a>
|
||||
</li>
|
||||
<li id="top-menu-mon-compte" class="selected">
|
||||
<li id="top-menu-mon-compte" class="sibling">
|
||||
<a href="{{ idp_url }}/accounts">Mon compte</a>
|
||||
</li>
|
||||
<li id="top-menu-mes-abonnements" class="sibling">
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n staticfiles %}
|
||||
|
||||
{% block extra_styles %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Logging out" %}{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="{% url 'openid-provider-decide' %}">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
|
|
Reference in New Issue