FEAT: Load Catagories from backend
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s

This commit is contained in:
FahdShalhoub
2026-08-16 22:42:17 +03:00
parent 724351c271
commit 27fd28d426
5 changed files with 218 additions and 106 deletions
+4 -6
View File
@@ -2,7 +2,7 @@ package views
import "thamanyah/cms/v2/internal/views/layouts"
templ VideoUpload() {
templ VideoUpload(categories []string) {
@layouts.Layout("Upload Video · Thamanyah CMS") {
<h1>Upload a video</h1>
<p>Provide the video file along with its metadata.</p>
@@ -18,11 +18,9 @@ templ VideoUpload() {
<div class="field">
<label for="category">Categories</label>
<select id="category" name="category" multiple>
<option value="documentary">Documentary</option>
<option value="news">News</option>
<option value="entertainment">Entertainment</option>
<option value="podcast">Podcast</option>
<option value="other">Other</option>
for _, category := range categories {
<option value={ category }>{ category }</option>
}
</select>
</div>
<div class="field">