From 5697ad27fec9cadecf5d8504d3273c06c6b33b95 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Mon, 25 Sep 2023 13:13:19 +0200 Subject: [PATCH] =?UTF-8?q?Move=20admin-only=20links=20inside=20the=20user?= =?UTF-8?q?=E2=80=99s=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We discussed with Oriol how to show these “extra” menu items, as they can’t be in the horizontal menu we have intended for employees, because there is not enough horizontal space. Oriol suggested to move these into the user menu. In fact, the company settings was already there, which means that i already wanted to do that from the very beginning, i believe, but i must have forgotten it along the way…. Or maybe it was because this is where Numerus has the company settings menu item, too, and i did not see the relation with the rest; i do not know. --- web/templates/admin/campsite/form.gohtml | 1 - web/templates/admin/campsite/index.gohtml | 1 - web/templates/admin/campsite/type/form.gohtml | 1 - .../admin/campsite/type/index.gohtml | 1 - web/templates/admin/campsite/type/l10n.gohtml | 1 - web/templates/admin/carousel/form.gohtml | 1 - web/templates/admin/carousel/l10n.gohtml | 1 - web/templates/admin/home/index.gohtml | 1 - web/templates/admin/htmx.gohtml | 1 - web/templates/admin/layout.gohtml | 46 ++++++++----------- web/templates/admin/media/form.gohtml | 1 - web/templates/admin/media/index.gohtml | 1 - web/templates/admin/media/upload.gohtml | 1 - web/templates/admin/season/form.gohtml | 1 - web/templates/admin/season/index.gohtml | 1 - web/templates/admin/services/index.gohtml | 1 - web/templates/admin/taxDetails.gohtml | 1 - 17 files changed, 18 insertions(+), 44 deletions(-) diff --git a/web/templates/admin/campsite/form.gohtml b/web/templates/admin/campsite/form.gohtml index df92e7d..f3c768a 100644 --- a/web/templates/admin/campsite/form.gohtml +++ b/web/templates/admin/campsite/form.gohtml @@ -13,7 +13,6 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite.campsiteForm*/ -}} - {{ template "settings-tabs" "campsites" }}
{{( pgettext "Add Campsite" "action" )}}

{{( pgettext "Campsites" "title" )}}

{{ template "campground_map.svg" }} diff --git a/web/templates/admin/campsite/type/form.gohtml b/web/templates/admin/campsite/type/form.gohtml index 43a5d5e..f17143c 100644 --- a/web/templates/admin/campsite/type/form.gohtml +++ b/web/templates/admin/campsite/type/form.gohtml @@ -13,7 +13,6 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite/types.typeForm*/ -}} - {{ template "settings-tabs" "campsiteTypes" }} {{( pgettext "Add Type" "action" )}}

{{( pgettext "Campsite Types" "title" )}}

{{ if .Types -}} diff --git a/web/templates/admin/campsite/type/l10n.gohtml b/web/templates/admin/campsite/type/l10n.gohtml index a77178c..13f5d11 100644 --- a/web/templates/admin/campsite/type/l10n.gohtml +++ b/web/templates/admin/campsite/type/l10n.gohtml @@ -9,7 +9,6 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite/types.typeL10nForm*/ -}} - {{ template "settings-tabs" "campsiteTypes" }}

{{printf (pgettext "Translate Campsite Type to %s" "title") .Locale.Endonym }} diff --git a/web/templates/admin/carousel/form.gohtml b/web/templates/admin/carousel/form.gohtml index 96130d7..e31a0b9 100644 --- a/web/templates/admin/carousel/form.gohtml +++ b/web/templates/admin/carousel/form.gohtml @@ -13,7 +13,6 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/carousel.slideForm*/ -}} - {{ template "settings-tabs" .CarouselName }}

{{printf (pgettext "Translate Carousel Slide to %s" "title") .Locale.Endonym }} diff --git a/web/templates/admin/home/index.gohtml b/web/templates/admin/home/index.gohtml index 6ea7c58..b2872cf 100644 --- a/web/templates/admin/home/index.gohtml +++ b/web/templates/admin/home/index.gohtml @@ -8,7 +8,6 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/home.homeIndex*/ -}} - {{ template "settings-tabs" "home" }}

{{( pgettext "Carousel" "title" )}}

{{( pgettext "Add slide" "action" )}} {{ if .Slides -}} diff --git a/web/templates/admin/htmx.gohtml b/web/templates/admin/htmx.gohtml index 9b0205d..a632f57 100644 --- a/web/templates/admin/htmx.gohtml +++ b/web/templates/admin/htmx.gohtml @@ -4,4 +4,3 @@ --> {{ template "title" . }} — Camper {{ template "content" . }} -{{ define "settings-tabs" }}{{ end }} diff --git a/web/templates/admin/layout.gohtml b/web/templates/admin/layout.gohtml index 7d6fffb..02401d4 100644 --- a/web/templates/admin/layout.gohtml +++ b/web/templates/admin/layout.gohtml @@ -32,6 +32,24 @@
  • {{( pgettext "Company Settings" "title" )}}
  • +
  • + {{( pgettext "Campsite Types" "title" )}} +
  • +
  • + {{( pgettext "Campsites" "title" )}} +
  • +
  • + {{( pgettext "Seasons" "title" )}} +
  • +
  • + {{( pgettext "Media" "title" )}} +
  • +
  • + {{( pgettext "Home Page" "title" )}} +
  • +
  • + {{( pgettext "Services Page" "title" )}} +
  • {{- end }}