]> littlesong.place Git - littlesongplace.git/commitdiff
Improve upload form
authorChris Fulljames <christianfulljames@gmail.com>
Sat, 4 Jan 2025 14:48:11 +0000 (09:48 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Sat, 4 Jan 2025 14:48:11 +0000 (09:48 -0500)
templates/profile.html
todo.txt

index db643875cae5f535e3b19678997f53d50c7a8f61..77d0a05da4e5bb375ba51d4a124c43abf88090a7 100644 (file)
@@ -8,14 +8,18 @@
 
 {% if name == username %}
 <form action="/uploadsong" method="post" enctype="multipart/form-data">
+    <h2>Upload a new song</h2>
     <div class="upload-form">
-        <input type="file" name="song" accept=".mp3"></input>
+        <label for="song">mp3 File</label>
+        <input type="file" name="song" accept=".mp3" required></input>
     </div>
     <div class="upload-form">
-        <input type="text" name="title"></input>
+        <label for="title">Title</label>
+        <input type="text" name="title" required></input>
     </div>
     <div class="upload-form">
-        <input type="text" name="description"></input>
+        <label for="title">Description (optional)</label>
+        <textarea name="description"></textarea>
     </div>
     <div class="upload-form">
         <input type="submit" value="Upload"></input>
@@ -23,6 +27,8 @@
 </form>
 {% endif %}
 
+<h2>Songs</h2>
+
 {% for song in songs %}
 <div class="song">
     <div class="song-title">{{ song["title"] }}</div>
index ba3f530842721897e7eb994fc84e6ab9d883b794..dd7b508cdbbf9f2d8f9f93ebe718cd204d9985bd 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -1,15 +1,18 @@
-- song database
-- user folders outside of static tree (custom route)
-- user folders use id instead of name
-- save songs with id for name
 - validate song files
 - song collaborators
 - song tags
 - delete song
+- edit song info
+- user bio
+- edit user bio
+
+- javascript song player
 
 - admin account(s)
 - logging
 
+- css/design
+
 URL
 secrethideout.net
 sneaky.place