diff --git a/config.yaml b/config.yaml index 9344cc3..06de35b 100644 --- a/config.yaml +++ b/config.yaml @@ -92,6 +92,14 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/agenda/create-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 9eb12ed..bda5b2b 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -17,8 +17,10 @@ + {{$groupId := .ViewState.event.ID}} {{range .ViewState.event.Subscriptions}} + @@ -32,10 +34,17 @@ {{(timeFormat .CreatedAt "02/01/2006")}} - - - + {{end}} diff --git a/web/layouts/agenda/delete-event.html b/web/layouts/agenda/delete-event.html new file mode 100644 index 0000000..af7d15f --- /dev/null +++ b/web/layouts/agenda/delete-event.html @@ -0,0 +1,32 @@ +{{define "content"}} +
+
+ +
+ +
+
+ +
+{{end}} diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 787d596..2a632f9 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..4533761 --- /dev/null +++ b/web/layouts/agenda/updateEvent.html @@ -0,0 +1,231 @@ +{{ define "content" }} + +
+

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.

+ + + + +
+
+
+ +{{end}} \ No newline at end of file