made registration disableable

This commit is contained in:
2026-06-07 02:08:49 +02:00
parent a31c516e8f
commit b93d9382ac
4 changed files with 170 additions and 27 deletions

View File

@@ -39,7 +39,7 @@ func Home(w http.ResponseWriter, r *http.Request) {
err := home.Execute(w, struct {
Name string
}{
Name: "Miau",
Name: "Home",
})
if err != nil {
return
@@ -51,7 +51,7 @@ func Dashboard(w http.ResponseWriter, r *http.Request) {
err := dashboard.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Miau",
Title: "Dashboard",
})
if err != nil {
return
@@ -62,7 +62,7 @@ func Inventory(w http.ResponseWriter, r *http.Request) {
err := inventory.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Miau",
Title: "Inventory",
})
if err != nil {
return
@@ -73,7 +73,7 @@ func Items(w http.ResponseWriter, r *http.Request) {
err := item.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Miau",
Title: "Items",
})
if err != nil {
return
@@ -84,7 +84,7 @@ func Locations(w http.ResponseWriter, r *http.Request) {
err := locations.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Miau",
Title: "Locations",
})
if err != nil {
return
@@ -95,7 +95,7 @@ func Projects(w http.ResponseWriter, r *http.Request) {
err := projects.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Miau",
Title: "Projects",
})
if err != nil {
return