diff --git a/config.yaml b/config.yaml index bae16d7..e8a84f0 100644 --- a/config.yaml +++ b/config.yaml @@ -100,6 +100,7 @@ views: files: - web/layouts/agenda/_partials/subscribers-table.html - web/layouts/agenda/display-event.html + - web/layouts/agenda/_partials/event-files.html create_event: files: - web/layouts/_partials/address_autocomplete.html diff --git a/themes b/themes deleted file mode 120000 index bfa4097..0000000 --- a/themes +++ /dev/null @@ -1 +0,0 @@ -themes \ No newline at end of file diff --git a/web/layouts/agenda/_partials/event-files.html b/web/layouts/agenda/_partials/event-files.html new file mode 100644 index 0000000..faf6585 --- /dev/null +++ b/web/layouts/agenda/_partials/event-files.html @@ -0,0 +1,115 @@ +{{define "event_files"}} +
+ {{if eq (len .ViewState.documents) 0}} +

Aucun document

+ {{end}} + + + {{if gt (len .ViewState.documents) 0}} + +
+ + + + + + + + + + {{range .ViewState.documents}} + + + + + + {{end}} + + + + +
+ Actions +
{{.Metadata.Name}}{{.LastModified.Format "02/01/2006"}} + + + +
+
+ + {{end}} + +

Ajouter un document

+
+
+
+ + +
+
+ +
+
+ {{.IconSet.Icon "hero:outline/folder-plus" "mx-auto h-12 w-12 text-gray-400"}} +
+ + + + +
+

Jusqu'à 10MB

+

+
+
+
+
+ +
+ +
+{{end}} diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 5da1324..c5de13c 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -204,22 +204,11 @@ {{end}}
+

Documents

-

Documents joints

- +
{{template "event_files" .}}
-
- -
+