upload.html
HTML document, Unicode text, UTF-8 text
1{% extends "default.html" %} 2{% block title %}Upload | gigadata{% endblock %} 3{% block content %} 4<x-frame style="--width: 768px"> 5<form method="POST" class="vbox" enctype="multipart/form-data"> 6<h2>Upload</h2> 7<label> 8<span class="required-asterisk">Title</span> 9<input type="text" name="title" required> 10</label> 11<label> 12<span class="required-asterisk">Description</span> 13<textarea name="description" required></textarea> 14</label> 15<label> 16Origin URL 17<input type="url" name="origin_url"> 18Can be left blank if not applicable. 19</label> 20<x-vbox> 21<span class="required-asterisk">Licences</span> 22<div class="multi-select" style="height: clamp(320px, 50vh, 640px)"> 23{% for licence in licences %} 24<div class="licence-selection"> 25<label> 26<input name="licence" type="checkbox" value="{{ licence.id }}"> 27{% if licence.pinned %} 28<iconify-icon icon="mdi:pin" title="Pinned">Pinned</iconify-icon> 29{% endif %} 30{% if not licence.free %} 31<iconify-icon icon="mdi:ban" title="Non-free">Non-free</iconify-icon> 32{% endif %} 33<span class="licence-title"> 34<span class="licence-name"> 35{{ licence.title }} 36</span> 37 38{% if licence.url %} 39<a href="{{ licence.url }}" target="_blank">More information</a> 40{% endif %} 41</span> 42</label> 43<div class="licence-selection-info"> 44{% if licence.logo_url %} 45{% if licence.url %} 46<a href="{{ licence.url }}" target="_blank"> 47<img src="{{ licence.logo_url }}" alt="{{ licence.title }}" class="licence-logo"> 48</a> 49{% else %} 50<img src="{{ licence.logo_url }}" alt="{{ licence.title }}" class="licence-logo"> 51{% endif %} 52{% endif %} 53<p>{{ licence.description | safe }}</p> 54</div> 55</div> 56{% endfor %} 57</div> 58<p> 59You can select multiple licences, but you must select at least one, and at least 60one must be free. Selecting multiple licences means users are free to choose any 61of them — they <em>do not</em> have to comply with all of them. 62</p> 63<div class="icon-explainer"> 64<iconify-icon icon="mdi:pin" title="Pinned"></iconify-icon> 65Recommended for new works 66<iconify-icon icon="mdi:ban" title="Non-free"></iconify-icon> 67Not a free software, open source or free culture licence 68</div> 69</x-vbox> 70<label> 71<span class="required-asterisk">File</span> 72<input type="file" name="file" required> 73</label> 74<button type="submit">Upload</button> 75</form> 76</x-frame> 77{% endblock %}