diff --git a/templates/admin_library.templ b/templates/admin_library.templ index 14921ff..bd64ae2 100644 --- a/templates/admin_library.templ +++ b/templates/admin_library.templ @@ -1,13 +1,11 @@ package templates -templ AdminLibrary(user User) { +templ AdminLibrary(user User, libraries []LibraryData, users []User) { Library Management - Bookhoard - - @@ -38,7 +36,7 @@ templ AdminLibrary(user User) { ← Back to Dashboard - @@ -53,7 +51,33 @@ templ AdminLibrary(user User) {

Manage media libraries and their folders

- + if len(libraries) == 0 { +

+ No libraries yet. Create your first library to get started. +

+ } else { + for _, library := range libraries { +
+
+
+

{ library.Name }

+ if library.Description != "" { +

{ library.Description }

+ } + + { library.TypeName } + +
+
+ + + +
+
+ +
+ } + }
@@ -76,6 +100,9 @@ templ AdminLibrary(user User) {
@@ -88,264 +115,42 @@ templ AdminLibrary(user User) { -