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"}} +
+
+
+

La liste des bénéficaires

+
+ +
+
+
+
+
+
+
+ + + + + + + + + + + + + + + +
+ Nom + + Téléphone + + Adresse + + Labels + + Modifier +
+
+ + +
+
+
+ +
+
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/administration/events_stats.html b/web/layouts/administration/events_stats.html new file mode 100644 index 0000000..53bd498 --- /dev/null +++ b/web/layouts/administration/events_stats.html @@ -0,0 +1,105 @@ +{{define "content"}} + +
+
+
+

La liste des événements

+
+ +
+
+
+
+
+
+
+ + + + + + + + + + + + + {{range .ViewState.events}} + + + + + + + + + + + + {{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/administration/home.html b/web/layouts/administration/home.html index 8c47e1f..f314c63 100644 --- a/web/layouts/administration/home.html +++ b/web/layouts/administration/home.html @@ -14,7 +14,7 @@
- Bénéficiaires + Bénéficiaires

{{len .ViewState.beneficiaries }} bénéficiaires

@@ -23,13 +23,13 @@
  • - {{.IconSet.Icon "hero:outline/office-building" "h-6 w-6"}} + {{.IconSet.Icon "hero:outline/calendar" "h-6 w-6"}}
    - Organisations -

    {{len .ViewState.groups}} organisations

    + Évenements +

    {{len .ViewState.events}} évenements

  • @@ -42,7 +42,7 @@
    - Référents + Référents

    {{len .ViewState.accounts}} membres

    @@ -65,8 +65,11 @@
    -

    Gestion des organisations

    - + +
    +

    Gestion des organisations

    +

    ( {{len .ViewState.groups}} organisations )

    +

    diff --git a/web/layouts/administration/vehicles_stats.html b/web/layouts/administration/vehicles_stats.html new file mode 100644 index 0000000..06432c4 --- /dev/null +++ b/web/layouts/administration/vehicles_stats.html @@ -0,0 +1,151 @@ +{{define "content"}} +
    +
    +
    +

    La liste des voitures

    +
    + +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + {{range .ViewState.vehicles}} + + + + + + + + + + + + {{end}} + +
    + 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 +
    +
    +
    +
    +
    +
    + + +{{end}} diff --git a/web/layouts/members/display.html b/web/layouts/members/display.html index 2d8d487..8e4a2e9 100644 --- a/web/layouts/members/display.html +++ b/web/layouts/members/display.html @@ -16,8 +16,6 @@
    - {{if eq .UserID .ViewState.admins.ID}} @@ -60,6 +58,13 @@
    {{.ViewState.admins.Data.last_name}}
    +
    +
    Organisations
    + {{range .ViewState.groups}} +
    {{.}} +
    + {{end}} +
    diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html new file mode 100644 index 0000000..884a889 --- /dev/null +++ b/web/layouts/members/membersList.html @@ -0,0 +1,154 @@ +{{define "content"}} +
    +
    +
    +

    La listes des référents

    +
    + +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    + Nom + + Téléphone + + Email + + Organisations + + +
    +
    + + +
    +
    +
    +
    +
    +
    + +{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles/bookings-list.html b/web/layouts/vehicles/bookings-list.html index 4cb90c2..4f2ace9 100644 --- a/web/layouts/vehicles/bookings-list.html +++ b/web/layouts/vehicles/bookings-list.html @@ -1,6 +1,18 @@ {{define "content"}}
    -

    Réservations

    +
    +
    +

    Réservations

    +
    + +
    @@ -64,6 +76,11 @@ {{end}} {{end}} + {{if not .bookings}} + + Disponible + + {{end}}
    {{(index $.ViewState.vehicles_map .Vehicleid).Type}}