From 0c77e5054a6ccbf03b767c1521c67882b7c7f5bb Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Fri, 10 Mar 2023 13:20:03 +0100 Subject: [PATCH] small updates after merge --- config.yaml | 3 + web/layouts/agenda/history.html | 105 ++++++++++++++++++++++++++++++++ web/layouts/agenda/home.html | 7 +++ 3 files changed, 115 insertions(+) create mode 100644 web/layouts/agenda/history.html diff --git a/config.yaml b/config.yaml index aad114f..0102a64 100644 --- a/config.yaml +++ b/config.yaml @@ -87,6 +87,9 @@ views: list: files: - web/layouts/agenda/home.html + history: + files: + - web/layouts/agenda/history.html display_event: files: - web/layouts/agenda/_partials/subscribers-table.html diff --git a/web/layouts/agenda/history.html b/web/layouts/agenda/history.html new file mode 100644 index 0000000..55f84fe --- /dev/null +++ b/web/layouts/agenda/history.html @@ -0,0 +1,105 @@ +{{define "content"}} +
+

Anciens dispositifs

+ +
+
+

+
+
+
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + {{range .ViewState.events}} + {{if eq .Deleted false}} + + + + + + + + + + + + + + {{end}} + {{end}} + + +
+ Dispositif + + Structure + + Lieu + + Dates + + Places disponibles + + Bénéficiaires positionnés + + Actions +
+ +
{{.Name}}
+
{{.Type}}
+
+ +
+ {{range .Owners}} + {{if (index $.ViewState.groups .)}} + {{(index $.ViewState.groups .).Data.name}} + {{end}} + {{end}} +
+
+
{{if .Data.address}}{{.Data.address.properties.label}}{{end}}
+
+
+ {{if eq .Startdate .Enddate}} + Le {{(timeFrom .Startdate).Format "02/01/2006"}} + {{else}} + Du {{(timeFrom .Startdate).Format "02/01/2006"}}
Au {{(timeFrom .Enddate).Format "02/01/2006"}} + {{end}} +
+
+ {{if ne .RemainingSubscriptions 999}} +
{{.RemainingSubscriptions}}
+ {{end}} +
+
+ {{range .Subscriptions}} + + {{end}} +
+
+ Voir +
+
+
+
+
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/agenda/home.html b/web/layouts/agenda/home.html index 06769e1..8bf12f0 100644 --- a/web/layouts/agenda/home.html +++ b/web/layouts/agenda/home.html @@ -7,6 +7,13 @@

+ + +