diff --git a/config.yaml b/config.yaml index 81d497f..aad114f 100644 --- a/config.yaml +++ b/config.yaml @@ -40,6 +40,9 @@ views: update: files: - web/layouts/members/update.html + list: + files: + - web/layouts/members/membersList.html vehicles: search: files: @@ -163,7 +166,15 @@ views: - web/layouts/administration/_partials/groups_admins.html - web/layouts/administration/_partials/group_members.html - web/layouts/administration/display_group.html - group: + beneficaires_list: + files: + - web/layouts/administration/beneficaires_stats.html + events_list: + files: + - web/layouts/administration/events_stats.html + vehicles_list: + files: + - web/layouts/administration/vehicles_stats.html settings: files: - web/layouts/administration/_partials/groups_admins.html diff --git a/web/layouts/administration/beneficaires_stats.html b/web/layouts/administration/beneficaires_stats.html new file mode 100644 index 0000000..d4eaf9c --- /dev/null +++ b/web/layouts/administration/beneficaires_stats.html @@ -0,0 +1,156 @@ +{{define "content"}} +
+ 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 + | +
{{len .ViewState.groups}} organisations
+ Évenements +{{len .ViewState.events}} évenements
( {{len .ViewState.groups}} organisations )
++ Statut Réservation + | ++ Organisation + | ++ Numéro (Immat / Bicycode) + | ++ Type + | ++ Modèle + | ++ Lieu + | + ++ Actions + | +
---|---|---|---|---|---|---|
+
+ {{if not .Bookings}}
+
+ Disponible
+
+ {{else if len .Bookings | eq 1}}
+ {{range .Bookings}}
+ {{if .Data.administrator_unavailability}}
+
+ Retiré
+
+ {{else if eq .Status -1 }}
+
+ Disponible
+
+ {{else if eq .Status 1 }}
+
+ A venir
+
+ {{else if eq .Status 0 }}
+
+ En cours
+
+ {{end}}
+ {{end}}
+ {{else if gt (len .Bookings) 1}}
+ {{range .Bookings}}
+ {{if .Data.administrator_unavailability}}
+
+ Retiré
+
+ {{else}}
+ {{if eq .Status 1 }}
+
+ A venir
+
+ {{else if eq .Status 0 }}
+
+ En cours
+
+ {{end}}
+ {{end}}
+ {{end}}
+ {{$allAvailable := true}}
+ {{range .Bookings}}
+ {{if ne .Status -1}}
+ {{ $allAvailable = false }}
+ {{break}}
+ {{end}}
+ {{end}}
+ {{if $allAvailable}}
+
+ Disponible
+
+ {{end}}
+ {{end}}
+
+ |
+
+ {{(index $.ViewState.admingroups (index .Administrators 0)).Data.name}}
+ |
+
+ {{.Data.licence_plate}}
+ |
+
+
+ {{.Type}}
+ {{if eq .Type "Voiture"}}
+ {{ if .Data.automatic}} (boite auto){{ end }}
+ {{end}}
+
+ |
+
+ {{.Data.name}}
+ |
+
+ {{if .Data.address}}{{.Data.address.properties.label}}{{end}}
+ |
+
+ + Voir + | +