Web platform for sharing free data for ML and research

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 upload.html

View raw Download
text/html • 4.9 kiB
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
Description
13
<textarea name="description"></textarea>
14
</label>
15
<x-vbox>
16
<span class="required-asterisk">Picture type</span>
17
<div class="single-select" style="height: clamp(320px, 25vh, 640px)">
18
{% for type in types %}
19
<div class="image-type-selection">
20
<label>
21
<input name="nature" type="radio" value="{{ type.id }}" required>
22
<span class="image-type-title">
23
<span class="image-type-name">
24
{{ type.id }}
25
</span>
26
</span>
27
</label>
28
<div class="image-type-selection-info">
29
<p>{{ type.description | safe }}</p>
30
</div>
31
</div>
32
{% endfor %}
33
</div>
34
</x-vbox>
35
<label>
36
Origin URL
37
<input type="url" name="origin_url">
38
Can be left blank if not applicable.
39
</label>
40
<x-vbox>
41
<span class="required-asterisk">Licences</span>
42
<div class="multi-select" style="height: clamp(320px, 50vh, 640px)">
43
{% for licence in licences %}
44
<div class="licence-selection">
45
<label>
46
<input name="licence" type="checkbox" value="{{ licence.id }}">
47
{% if licence.pinned %}
48
<iconify-icon icon="mdi:pin" title="Pinned">Pinned</iconify-icon>
49
{% endif %}
50
{% if not licence.free %}
51
<iconify-icon icon="mdi:ban" title="Non-free">Non-free</iconify-icon>
52
{% endif %}
53
<span class="licence-title">
54
<span class="licence-name">
55
[{{ licence.id }}]
56
{{ licence.title }}
57
</span>
58
59
{% if licence.url %}
60
<a href="{{ licence.url }}" target="_blank">More information</a>
61
{% endif %}
62
</span>
63
</label>
64
<div class="licence-selection-info">
65
{% if licence.logo_url %}
66
{% if licence.url %}
67
<a href="{{ licence.url }}" target="_blank" tabindex="-1"> {# An equivalent link already exists, only one is focusable #}
68
<img src="{{ licence.logo_url }}" alt="{{ licence.title }}" class="licence-logo">
69
</a>
70
{% else %}
71
<img src="{{ licence.logo_url }}" alt="{{ licence.title }}" class="licence-logo">
72
{% endif %}
73
{% endif %}
74
<p>{{ licence.description | safe }}</p>
75
</div>
76
</div>
77
{% endfor %}
78
</div>
79
<p>
80
You can select multiple licences, but you must select at least one, and at least
81
one must be free. Selecting multiple licences means users are free to choose any
82
of them — they <em>do not</em> have to comply with all of them.
83
</p>
84
<div class="icon-explainer">
85
<iconify-icon icon="mdi:pin" title="Pinned"></iconify-icon>
86
Recommended for new works
87
<iconify-icon icon="mdi:ban" title="Non-free"></iconify-icon>
88
Not a free software, open source or free culture licence
89
</div>
90
</x-vbox>
91
<label>
92
<span class="required-asterisk">File</span>
93
<input type="file" name="file" required>
94
</label>
95
<button type="submit">Upload</button>
96
</form>
97
</x-frame>
98
{% endblock %}