aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-02-12 19:19:41 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-02-12 19:19:41 +0100
commit1a9d750de7bb30bea5dcc7cd14f3f1826ddf00f7 (patch)
treed8d17e30646e4cb2af3ea15a8c12ec60eb0e545c /templates
parent5dd6419d676aa60ddde188a800d5084211e88d89 (diff)
downloadguichet-1a9d750de7bb30bea5dcc7cd14f3f1826ddf00f7.tar.gz
guichet-1a9d750de7bb30bea5dcc7cd14f3f1826ddf00f7.zip
Implement basic PIM management
Diffstat (limited to 'templates')
-rw-r--r--templates/home.html18
-rw-r--r--templates/pim_inspect.html16
2 files changed, 33 insertions, 1 deletions
diff --git a/templates/home.html b/templates/home.html
index dd88d13..8e0a23c 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -24,7 +24,7 @@
<div class="mt-3">
<div class="card">
<div class="card-header">
- Mon espace sur la toile
+ Mes publications sur la toile
</div>
<div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action" href="/website/configure">Mes identifiants</a>
@@ -33,6 +33,22 @@
</div>
</div>
+<div class="mt-3">
+ <div class="card">
+ <div class="card-header">
+ Mon espace personnel (email, calendrier, contacts, etc.)
+ </div>
+ <div class="list-group list-group-flush">
+{{if .User.Capabilities.CanUseEmail}}
+ <a class="list-group-item list-group-item-action disabled" href="#">Accéder à l'interface web</a>
+ <a class="list-group-item list-group-item-action" href="/pim/inspect">Voir les détails</a>
+{{ else }}
+ <a class="list-group-item list-group-item-action" href="/pim/setup">Créer mon espace</a>
+{{ end }}
+ </div>
+ </div>
+</div>
+
{{if .User.Capabilities.CanInvite}}
<div class="card mt-3">
<div class="card-header">
diff --git a/templates/pim_inspect.html b/templates/pim_inspect.html
new file mode 100644
index 0000000..7d86f9b
--- /dev/null
+++ b/templates/pim_inspect.html
@@ -0,0 +1,16 @@
+{{define "title"}}Configurer mConfigurer mon compte email |{{end}}
+
+{{define "body"}}
+<div class="d-flex">
+ <h4>Mon adresse email</h4>
+ <a class="ml-auto btn btn-info" href="/">Menu principal</a>
+</div>
+
+<div class="row">
+ <div class="col-md-12 mt-3">
+ <div class="alert alert-danger">PAGE DE DEBUG, NON CONFORME POUR UNE MISE EN PRODUCTION</div>
+ </div>
+ <pre>{{ . }}</pre>
+</div>
+
+{{end}}