diff --git a/backend/renders/renders.go b/backend/renders/renders.go index 57ee78e..61521ec 100644 --- a/backend/renders/renders.go +++ b/backend/renders/renders.go @@ -157,8 +157,9 @@ func Dashboard(db *gorm.DB) http.HandlerFunc { func renderTemplate(w http.ResponseWriter, templ string, data map[string]interface{}) { t, err := template.ParseFiles( - "./frontend/templates/head.pages.tmpl", // Template inclus - "./frontend/templates/" + templ + ".pages.tmpl", // Template principal + "./frontend/templates/head.pages.tmpl", + "./frontend/templates/sidebar.pages.tmpl", + "./frontend/templates/" + templ + ".pages.tmpl", ) if err != nil { diff --git a/frontend/templates/dashboard.pages.tmpl b/frontend/templates/dashboard.pages.tmpl index 4c1ed85..6f3ff91 100644 --- a/frontend/templates/dashboard.pages.tmpl +++ b/frontend/templates/dashboard.pages.tmpl @@ -1,7 +1,9 @@ {{ define "dashboard.pages.tmpl" }} {{ template "head" . }} - +