From 963465985f7da44da8761076656a5b80c4334a04 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Tue, 4 May 2021 17:38:13 +0200 Subject: [PATCH] Insert description in agent page --- app/main/templates/agent.html | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- app/main/templates/agent_edit.html | 42 ++++++++++++++++++++++++++++++++++++++++++ app/static/css/style.css | 7 ++++++- 3 files changed, 119 insertions(+), 12 deletions(-) create mode 100644 app/main/templates/agent_edit.html diff --git a/app/main/templates/agent.html b/app/main/templates/agent.html index b31f2ab..e2a2b7b 100644 --- a/app/main/templates/agent.html +++ b/app/main/templates/agent.html @@ -1,7 +1,8 @@ {% extends "base_page.html" %} {% block more_heads %} - + {% endblock %} {% block content %} @@ -9,25 +10,84 @@ -
+
+
+ Fiche Agent +
+
+
+
ID :
+
{{agent.id}}
+
Genre :
+
+
Date de naissance :
+
+
E-mail :
+
+ {# TODO: put different spacing #} +
+
+
Statut :
+
{{agent.status_id}}
+
Organisme :
+
{{agent.company_id}}
+
Corps :
+
+
BAP :
+
{{agent.bap_id}}
+ {# TODO: puth different spacing #} +
+
+
Quotité :
+
+
Date arrivée :
+
+
Date départ :
+
+ {# TODO: put different spacing #} +
+
+
Commentaires :
+
+ {# TODO: put different spacing #} +
+
+
APPRENTI
+
+
Fiche de poste :
+
+ {# TODO: put different spacing #} +
+
+
Compétences :
+
+
Besoin en formation :
+
+
+ + Modifier +
+
+ +
- {% for header in charges[0] %} + {% for header in charges[0] %} - {% endfor %} + {% endfor %} {% for line in charges[1:] %} {% for i in range(line|length) %} - {%if 'Charge' in charges[0][i] %} - {% set charge = line[i] | int %} - - {%else%} - - {%endif%} + {%if 'Charge' in charges[0][i] %} + {% set charge = line[i] | int %} + + {%else%} + + {%endif%} {% endfor %} {% endfor %} @@ -43,7 +103,7 @@ {% endblock %} diff --git a/app/main/templates/agent_edit.html b/app/main/templates/agent_edit.html new file mode 100644 index 0000000..4990d4d --- /dev/null +++ b/app/main/templates/agent_edit.html @@ -0,0 +1,42 @@ +{% extends "base_page.html" %} +{% block content %} +{% if agent %} +Modifier l'agent {{ agent.name}}. +{% else %} +Ajouter un nouvel agent. +{% endif %} + + {% if agent %} + + {% endif %} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +{% endblock %} diff --git a/app/static/css/style.css b/app/static/css/style.css index 497c072..fd93882 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -8,8 +8,9 @@ @media (min-width: 1670px) { .sidebar { - max-width:12.499999995%; + max-width: 12.499999995%; } +} /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ html { @@ -106,4 +107,8 @@ nav.sidebar a.disabled { border: solid black 1pt; margin-bottom: 3em; border-radius: 0; +} + +dl.agent { + line-height: 1.2; } \ No newline at end of file -- libgit2 0.21.2
{{header}}
{{charge / 100}}{{line[i]}}{{charge / 100}}{{line[i]}}