Commit 80eec709 authored by hypsug0's avatar hypsug0
Browse files

feat: add page head title

parent dfa9fc65
{% extends 'base.html' %} {% block content %}
{% extends 'base.html' %}
{% block title %}Erreur 400{% endblock %}
{% block content %}
<h1><i class="fas fa-info-circle"></i> Erreur 400</h1>
<div class="columns callout">
<h2>Mauvaise requête</h2>
......
{% extends 'base.html' %} {% block content %}
{% extends 'base.html' %}
{% block title %}Erreur 403{% endblock %}
{% block content %}
<h1><i class="fas fa-info-circle"></i> Erreur 403</h1>
<div class="columns callout">
<h2>Accès non authorisé</h2>
......
{% extends 'base.html' %} {% block content %}
{% extends 'base.html' %}
{% block title %}Erreur 404{% endblock %}
{% block content %}
<h1><i class="fas fa-info-circle"></i> Erreur 404</h1>
<div class="columns callout">
<h2>Page non trouvée</h2>
......
{% extends 'base.html' %} {% block content %}
{% extends 'base.html' %}
{% block title %}Erreur 500{% endblock %}
{% block content %}
<h1><i class="fas fa-info-circle"></i> Erreur 500</h1>
<div class="columns callout">
<h2>Erreur de serveur</h2>
......
{% extends 'base.html' %}
{% load i18n %}
{% block title %}Mon profile{% endblock %}
{% block content %}
<h1><i class="fi-torsos-female-male"></i> {% trans "Informations de l\'utilisateur" %} {{ object.username }}</h1>
<div class="panel panel-group panel-default">
......
{% extends 'base.html' %}
{% block title %}{{ object.title }}{% endblock %}
{% block content %}
<h1>
<i class="{{ icon | safe }}"></i> {{ object.title }}
......
{% extends 'base.html' %}
{% load i18n %}
{% block title %} Accueuil {% endblock %}
{% block content %}
<div class="row" style="text-align:center;font-size:2rem;">
......@@ -95,7 +96,7 @@
{% if page_obj.has_previous %}
{% block pagination.previous %}
<li class="page-item">
<a class="page-link" href="{% url 'blog:actu_list' page_obj.previous_page_number %}">Previous</a>
<a class="page-link" href="{% url 'blog:home' page_obj.previous_page_number %}">Previous</a>
</li>
{% endblock pagination.previous %}
{% endif %}
......@@ -112,7 +113,7 @@
{% if page_obj.has_next %}
{% block pagination.next %}
<li class="page-item">
<a class="page-link" href="{% url 'blog:actu_list' page_obj.next_page_number %}">Next</a>
<a class="page-link" href="{% url 'blog:home' page_obj.next_page_number %}">Next</a>
</li>
{% endblock pagination.next %}
{% endif %}
......
......@@ -4,6 +4,7 @@
{% load geojson_tags %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block title %}Localité {{ title }}{% endblock %}
{% block content %}
<h1 xmlns="http://www.w3.org/1999/html"><i class="{{ icon | safe }}"></i> {{ title }}</h1>
<p>
......
......@@ -2,6 +2,7 @@
{% load i18n leaflet_tags %}
{% leaflet_js %}
{% leaflet_css %}
{% block title %}Carte des localités{% endblock %}
{% block content %}
<style>
.legend {
......
......@@ -2,6 +2,7 @@
{% load leaflet_tags i18n staticfiles crispy_forms_tags django_tables2 geojson_tags %}
{% leaflet_js %} {% leaflet_css %}
{% block jsvar %} {% endblock %}
{% block title %}{{ title | safe }}{% endblock %}
{% block content %}
<style>
.leaflet-container-default {
......
......@@ -2,6 +2,7 @@
{% load render_table from django_tables2 %}
{% load i18n %}
{% load static %}
{% block title %}Session {{ title | safe }}{% endblock %}
{% block content %}
<h1><i class="{{ icon | safe }}"></i> {{ title | safe }}</h1>
<p>
......@@ -9,6 +10,7 @@
{% if object.updated_by %}et
mise à jour le <b>{{ object.timestamp_update }}</b> par <b>{{ object.updated_by }}</b>
</small>{% endif %}
| localité <a href="{% url 'sights:session_detail' pk=object.place.pk %}" >{{object.place.name}}</a>
</p>
<div class="row">
<div class="col-md-12 col-lg-5">
......@@ -48,7 +50,7 @@
<div class="row">
<div class="col-lg-12">
<label>Localité</label>
<div class="well well-sm">{{ object.place }}
<div class="well well-sm"><a href="{% url 'sights:session_detail' pk=object.place.pk %}" >{{ object.place }}</a>
<a href="{% url 'sights:sessionchangeplace_update' pk=object.pk %}"
class="btn btn-xs btn-warning pull-right"><i
class="fa fa-fw fa-edit"></i><span class="hidden-xs"> Changer</span></a>
......@@ -106,18 +108,18 @@
<div class="well well-sm">
{% if object.study %}{{ object.study }}{% else %} Session non-attribuée à une étude {% endif %}
</div>
</div>
</div>
<div class="col-lg-12">
<label>Liens</label> <a href="{% url 'sights:sessionlink_create' pk=object.pk %}"
class="btn btn-xs btn-primary pull-right"><i class="fa fa-fw fa-plus"></i><span class="hidden-xs"> Ajouter</span></a>
<div class="well well-sm">
{% if object.session_link_related.count > 0%}
{% for link in object.session_link_related.all %}
{% for link in object.session_link_related.all %}
<div class="btn-group btn-group-xs">
<a class="text-info" href="{% url 'sights:sessionlink_update' pk=link.pk %}" title="Editer"><i class="fa fa-fw fa-edit"></i></a>
<a class="text-danger" href="{% url 'sights:sessionlink_delete' pk=link.pk %}" title="Modifier" target="_blank"><i class="fa fa-fw fa-trash"></i></a>
</div>
</div>
<strong>{{link.type_link}}</strong>&nbsp;:&nbsp;<a href="{{link.link}}" target="_blank" data-toggle="tooltip" title="{{link.comment}}">{{link.link}}</a><br>
......@@ -126,7 +128,7 @@
{% endfor %}
{% else %} - {% endif %}
</div>
</div>
</div>
{% if object.is_confidential %}
<div class="col-lg-12">
<div class="alert alert-danger" role="alert">
......
{% extends 'base_fullwidth_leaflet.html' %}
{% load render_table from django_tables2 %}
{% load i18n %}
{% block title %}{{title}} | {{object.session.date_start}} - {{object.session.contact.descr}} | {{object.session.place.name}}{% endblock %}
{% block content %}
<h1><i class="{{ icon | safe }}"></i> {{ title | safe }}</h1>
<p>
......@@ -8,6 +9,7 @@
{% if object.updated_by %}et
mise à jour le <b>{{ object.timestamp_update }}</b> par <b>{{ object.updated_by }}</b>
</small>{% endif %}
| session du <a href="{% url 'sights:session_detail' pk=object.session.pk %}" >{{object.session.date_start}} ({{object.session.contact.descr}})</a> | localité <a href="{% url 'sights:session_detail' pk=object.session.place.pk %}" >{{object.session.place.name}}</a>
</p>
<div class="row">
<div class="col-md-12 col-lg-5">
......
{% extends 'base.html' %} {% block content %}
{% extends 'base.html' %}
{% block title %} Information système{% endblock %}
{% block content %}
<h1><i class="fa fa-fw fa-info"></i> Information système</h1>
<div class="">
<table class="table table-striped table-hover">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment