FEAT: Load Catagories from backend
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user