diff --git a/config.yaml b/config.yaml index 5be7b71..b23f059 100644 --- a/config.yaml +++ b/config.yaml @@ -98,6 +98,14 @@ views: history_event: files: - web/layouts/agenda/history-event.html + update: + files: + - web/layouts/agenda/_partials/address.html + - web/layouts/_partials/address_autocomplete.html + - web/layouts/agenda/updateEvent.html + delete: + files: + - web/layouts/agenda/delete-event.html directory: home: files: diff --git a/web/layouts/agenda/_partials/address.html b/web/layouts/agenda/_partials/address.html new file mode 100644 index 0000000..06fc040 --- /dev/null +++ b/web/layouts/agenda/_partials/address.html @@ -0,0 +1,67 @@ +{{ define "address" }} + + +
+ + + + + +
+{{ end }} \ No newline at end of file diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index 470dfc2..5bd17af 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -20,6 +20,7 @@ {{$evid := .ViewState.event.ID}} {{range .ViewState.event.Subscriptions}} + @@ -27,7 +28,8 @@ -
 {{.Data.subscribed_by.user.display_name}}
+ +  {{.Data.subscribed_by.user.display_name}} {{.Data.subscribed_by.group.name}} diff --git a/web/layouts/agenda/delete-event.html b/web/layouts/agenda/delete-event.html new file mode 100644 index 0000000..57952bf --- /dev/null +++ b/web/layouts/agenda/delete-event.html @@ -0,0 +1,58 @@ +{{define "content"}} +{{ if eq (index .ViewState.event.Owners 0) .Group.ID }} + +
+
+ +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+

Vous etes sur de retirer cet événement

+
+
+
+
+ Annuler + +
+
+
+
+
+ +
+ {{else}} +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+
+
+ + Annuler + +
+
+
+
+ {{end}} +{{end}} diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 69e8dae..9b99cc2 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -12,7 +12,26 @@ {{end}}

+ {{$gr := .Group.ID}} + {{$event := .ViewState.event.ID}} + {{range .ViewState.event.Owners}} + {{$id := .}} + {{if eq $gr $id}} +
+ + + + + + +
+ {{end}} + {{end}} +
diff --git a/web/layouts/agenda/home.html b/web/layouts/agenda/home.html index 9a5882a..06769e1 100644 --- a/web/layouts/agenda/home.html +++ b/web/layouts/agenda/home.html @@ -50,6 +50,7 @@ {{range .ViewState.events}} + {{if eq .Deleted false}} @@ -99,6 +100,7 @@ {{end}} + {{end}} diff --git a/web/layouts/agenda/updateEvent.html b/web/layouts/agenda/updateEvent.html new file mode 100644 index 0000000..976a58e --- /dev/null +++ b/web/layouts/agenda/updateEvent.html @@ -0,0 +1,255 @@ +{{ define "content" }} +{{ if eq (index .ViewState.event.Owners 0) .Group.ID }} + +
+

Modifier votre agenda

+
+{{$sdate := (timeFrom .ViewState.event.Startdate).Format ("2006-01-02")}} +{{$edate := (timeFrom .ViewState.event.Enddate).Format ("2006-01-02")}} +
+
+
+
+
+

Informations sur le dispositif

+

Informations générales sur le dispositif d'accompagnement à ajouter à l'agenda

+
+
+
+
+ + +
+
+ + + + +
+
+ +
+ + + +
+
+ + {{ $fieldName := "address" }} + {{if .ViewState.event.Data.address}} + {{$default := .ViewState.event.Data.address}} + {{ template "address" dict "FieldName" $fieldName "Default" $default}} + {{else}} + {{ template "address_autocomplete" dict "FieldName" $fieldName}} + + + {{end}} +
+
+
+
+ +
+
+
+

Planification

+

Dates et horaires de l'événement

+
+
+
+ +
+ + Toute la journée + + +
+ +
+
+
+ + + +
+
+ + +
+ + +
+
+ +
+
+
+ + +
+
+ + +
+ + +
+
+ + +
+ +
+
+
+ +
+
+
+

Paramètres

+

Paramètres du dispositift (nombre de places disponibles, etc...)

+
+
+
+
+ + +
+
+
+
+
+ + + +
+

Certains champs de sont pas valides.

+ + + + +
+
+
+{{else}} +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+
+
+ + Annuler + +
+
+
+
+{{end}} +{{end}} \ No newline at end of file diff --git a/web/layouts/members/update.html b/web/layouts/members/update.html index b7b28b0..2349fe5 100644 --- a/web/layouts/members/update.html +++ b/web/layouts/members/update.html @@ -1,4 +1,5 @@ {{define "content"}} +{{if eq .UserID .ViewState.ID}}

Modifier vos informations

@@ -128,4 +129,26 @@
+{{else}} +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+
+
+ Annuler +
+
+
+
+{{end}} {{end}} \ No newline at end of file