HTMLify
media-edit.html
Views: 457 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | <!DOCTYPE html> <html> <head> <title>Editing - {{ path }}</title> {% include "stylesheet.html" %} </head> <body> <h1>Editing - {{ path }}</h1> {% include "nav-bar.html" %} <form class="edit-form" action="/action/edit-media" method="POST"> <input type="hidden" name="oldname" value="{{ path[session["user"]["username"]|length+1:] }}" /> <label for="filenameInput">File Name:</label> <input type="text" id="filenameInput" name="filename" value="{{ path[session["user"]["username"]|length+1:] }}" required> {% if path %} Title: <input type="text" name="title" value="{{ title }}" placeholder="File title" /><br> {% endif %} <br> <input type="radio" name="mode" value="r" {% if current_mode == "r" %}checked{% endif %}/> Raw <input type="radio" name="mode" value="s" {% if current_mode == "s" %}checked{% endif %}/> Show | Visibility: <input type="radio" name="visibility" value="p" {% if current_visibility == "p" %}checked{% endif %}/> Public <input type="radio" name="visibility" value="h" {% if current_visibility == "h" %}checked{% endif %}/> Hide <input type="radio" name="visibility" value="o" {% if current_visibility == "o" %}checked{% endif %}/> Once <br>Password: <input type="text" name="password" value="{{ password }}"><br> <input type="submit" value="save"> <a href="/dashboard">Back</a> <br> {% if filetype == "image" %} <img src="/raw/{{ path }}" /> {% elif filetype == "audio" %} <audio> <source src="/raw/{{ path }}"> </audio> {% elif filetype == "video" %} <video> <source src="/raw/{{ path }}" > </video> {% endif %} </form> </body> </html> |