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