reorganised the templates inheritances
This commit is contained in:
parent
e9b67b11d8
commit
51e8dd217e
14 changed files with 79 additions and 47 deletions
|
@ -1,6 +1,8 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# table of all the absences #}
|
{# table of all the absences #}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
<form method="POST" enctype="multipart/form-data">
|
<form method="POST" enctype="multipart/form-data">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# absence's information #}
|
{# absence's information #}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
27
Palto/Palto/templates/Palto/base/base-features.html
Normal file
27
Palto/Palto/templates/Palto/base/base-features.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{% extends "Palto/base/base.html" %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block style %}
|
||||||
|
{{ block.super }}
|
||||||
|
<link rel="stylesheet" href="{% static "Palto/css/navigation.css" %}" />
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<div id="navigation-header">
|
||||||
|
<img id="navigation-icon" src="{% static "Palto/favicon.svg" %}" alt="Palto's icon" />
|
||||||
|
<a id="navigation-title">Palto</a>
|
||||||
|
</div>
|
||||||
|
<div id="navigation-buttons">
|
||||||
|
<a href="{% url "Palto:homepage" %}">Home</a>
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
<a href="{% url "Palto:my_profile" %}">Profile</a>
|
||||||
|
<a href="{% url "Palto:logout" %}">Logout</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{% url "Palto:login" %}">Login</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
|
@ -7,10 +7,11 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" type="image/png" href="{% static 'Palto/favicon.svg' %}"/>
|
<link rel="shortcut icon" type="image/png" href="{% static 'Palto/favicon.svg' %}"/>
|
||||||
<link rel="stylesheet" href="{% static "Palto/css/base.css" %}" />
|
|
||||||
<title>{% block title %}Palto{% endblock %}</title>
|
<title>{% block title %}Palto{% endblock %}</title>
|
||||||
|
|
||||||
{# base style #}
|
{# base style #}
|
||||||
|
|
||||||
|
{% block style %}
|
||||||
<style>
|
<style>
|
||||||
{# font #}
|
{# font #}
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -18,12 +19,10 @@
|
||||||
src: url("{% static 'Palto/font/CenturyGothic.ttf' %}");
|
src: url("{% static 'Palto/font/CenturyGothic.ttf' %}");
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<link rel="stylesheet" href="{% static "Palto/css/base.css" %}" />
|
||||||
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{# navigation #}
|
|
||||||
{% include "Palto/navigation.html" %}
|
|
||||||
|
|
||||||
{# body #}
|
{# body #}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,8 +1,10 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
{% load dict_tags %}
|
{% load dict_tags %}
|
||||||
|
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# department's information #}
|
{# department's information #}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
<h1>Palto</h1>
|
<h1>Palto</h1>
|
||||||
|
|
||||||
<p>
|
<p>Palto est un outil de gestion des présences d'élèves dans vos établissements scolaires.</p>
|
||||||
Palto est un outil de gestion des présences d'élèves dans vos établissements scolaires.
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block style %}
|
||||||
|
{{ block.super }}
|
||||||
|
<link rel="stylesheet" href="{% static "Palto/css/login.css" %}" />
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<form method="POST">
|
{{ block.super }}
|
||||||
|
|
||||||
|
<form id="login-form" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
{{ form_login.as_table }}
|
{{ form_login.as_table }}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
<nav>
|
|
||||||
<link rel="stylesheet" href="{% static "Palto/css/navigation.css" %}" />
|
|
||||||
|
|
||||||
<div id="navigation-header">
|
|
||||||
<img id="navigation-icon" src="{% static "Palto/favicon.svg" %}" alt="Palto's icon" />
|
|
||||||
<a id="navigation-title">Palto</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="navigation-buttons">
|
|
||||||
<a href="{% url "Palto:homepage" %}">Home</a>
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<a href="{% url "Palto:my_profile" %}">Profile</a>
|
|
||||||
<a href="{% url "Palto:logout" %}">Logout</a>
|
|
||||||
{% else %}
|
|
||||||
<a href="{% url "Palto:login" %}">Login</a>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
|
@ -1,7 +1,9 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
{% load dict_tags %}
|
{% load dict_tags %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{{ profile.username }}
|
{{ profile.username }}
|
||||||
{{ profile.email }}
|
{{ profile.email }}
|
||||||
{% if profile.is_superuser %}Administrator{% endif %}
|
{% if profile.is_superuser %}Administrator{% endif %}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# group's information #}
|
{# group's information #}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# table of all the sessions #}
|
{# table of all the sessions #}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
{% load dict_tags %}
|
{% load dict_tags %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# session's information #}
|
{# session's information #}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{% extends "Palto/base.html" %}
|
{% extends "Palto/base/base-features.html" %}
|
||||||
{% load dict_tags %}
|
{% load dict_tags %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
{# unit's information #}
|
{# unit's information #}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue