-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathdataset_creation.html
132 lines (127 loc) · 7.59 KB
/
dataset_creation.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
layout: default
permalink: /andmestiku_lisamine/
ref: dataset_creation
lang: et
---
<form method="POST" action="https://avaandmed-staticman.herokuapp.com/v2/entry/okestonia/opendata.riik.ee/master/datasets" id = "datasetform" class="dataset-form">
<input name="options[redirect]" type="hidden" value="https://opendata.riik.ee">
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
<div class = "form-group row">
<div class ="col-md-6 mb-3">
<label class = "label-required" for="t1">Andmestiku nimi </label>
<input name="fields[title]" id="t1" type="text" class="form-control" required>
</div>
<div class ="col-md-6 mb-3">
<label for = "t2">Andmestiku nimi inglise keeles </label>
<input name="fields[title_en]" id ="t2" class="form-control" type="text">
</div>
</div>
<div class="form-group row">
<div class="col-md-6 mb-3">
<label class = "label-required" for ="t2">Andmestiku kirjeldus </label>
<textarea name="fields[notes]" id = "t3" rows="10" cols = "40" form ="datasetform" class ="form-control" required></textarea>
</div>
<div class="col-md-6 mb-3">
<label for="t4">Andmestiku kirjeldus inglise keeles </label>
<textarea name="fields[notes_en]" id = "t4" rows="10" cols = "40" form ="datasetform" class ="form-control"></textarea>
</div>
</div>
<div class="form-group row">
<div class ="col-md-6 mb-3">
<label class = "label-required" for = "t5">Teema </label>
<select name = "fields[category]" id ="t5" form = "datasetform" class="form-control" required>
<option value="Piirkonnad ja linnad">Piirkonnad ja linnad </option>
<option value="Tervis">Tervis </option>
<option value="Valitsus ja avalik sektor">Valitsus ja avalik sektor </option>
<option value="Haridus, kultuur ja sport">Haridus, kultuur ja sport </option>
<option value="Majandus ja rahandus">Majandus ja rahandus </option>
<option value="Põllumajandus, kalandus, metsandus">Põllumajandus, kalandus, metsandus </option>
<option value="Keskkond">Keskkond </option>
<option value="Transport">Transport </option>
<option value="Rahvusvahelised küsimused">Rahvusvahelised küsimused </option>
<option value="Elanikkond ja ühiskond">Elanikkond ja ühiskond </option>
<option value="Õigusemõistmine, õigussüsteem ja avalik turvalisus">Õigusemõistmine, õigussüsteem ja avalik turvalisus </option>
<option value="Teadus ja tehnoloogia">Teadus ja tehnoloogia </option>
</select>
</div>
<div class = "col-md-6 mb-3">
<label for = "t6">Teema inglise keeles</label>
<select name = "fields[category_en]" id = "t6" form = "datasetform" class="form-control">
<option value="Regions and Cities">Regions and Cities </option>
<option value="Health">Health </option>
<option value="Government and Public Sector">Government and Public Sector </option>
<option value="Education, Culture and Sport">Education, Culture and Sport </option>
<option value="Economy and Finance">Economy and Finance </option>
<option value="Agriculture, Fisheries, Forestry and Food">Agriculture, Fisheries, Forestry and Food </option>
<option value="Environment">Environment </option>
<option value="Transport">Transport </option>
<option value="International Issues">International Issues </option>
<option value="Population and Society">Population and Society </option>
<option value="Justice, Legal System, and Public Safety">Justice, Legal System, and Public Safety </option>
<option value="Science and Technology">Science and Technology </option>
</select>
</div>
</div>
<div class = "form-group row">
<div class ="col-md-12 mb-3">
<label class = "label-required" for = "t7">Faili nimi</label>
<input name="fields[name]" id ="t7" type="text" class="form-control mb-2" required>
<label class = "label-required" for ="t8">URL link andmestiku juurde </label>
<input name="fields[url]" id = "t8" type="text" class="form-control mb-2" required>
<label class = "label-required" for ="t9">Vormingud</label>
<input name="fields[format]" id ="t9" type="text" class="form-control mb-2" aria-describedby="t9help" required>
<small id="t9help" class="form-text text-muted mb-4">faili formaat, näiteks XML</small>
<label class = "label-required" for = "t10">Interaktiivne?</label>
<select name="fields[interactive]" id ="t10" type="text" class="form-control mb-2" aria-describedby="t10help" required>
<option value = "FALSE">False</option>
<option value = "TRUE">True</option>
</select>
<small id = "t10help" class = "form-text text-muted mb-4">siin on Teil kaks valikut, kas false, kui Teie poolt lisatava faili vorming on CSV, XML, XLSX või mõni muu staatiline vorming. Teine valik oleks true, kui Teie poolt lisatava faili vorming on kas HTML või JSON API – selline vorming, mis lubab kahepoolset andmevoolu, mida staatilise vormingu juures olla ei saaks.</small>
<label class = "label-required" for ="t11">Litsents</label>
<select name = "fields[license]" id="t11" form ="datasetform" class="form-control mb-2" required>
<option value ="https://creativecommons.org/licenses/by-sa/3.0/ee/legalcode"> Creative Commons 3.0</option>
<option value ="https://creativecommons.org/licenses/by/4.0/"> Creative Commons Attribution </option>
<option value ="https://creativecommons.org/licenses/by-sa/4.0/"> Creative Commons Attribution Share-Alike </option>
<option value ="https://creativecommons.org/publicdomain/zero/1.0/"> Creative Commons CCZero </option>
<option value ="http://creativecommons.org/about/cc0"> “No Rights Reserved” </option>
<option value ="https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode"> CC-BY-NC-ND 4.0 </option>
<option value ="OTHER"> Muu </option>
</select>
</div>
</div>
<div class = "form-group row">
<div class="col-md-12 mb-3">
<label class = "label-required" for = "t12"> Uuendamissagedus </label>
<select name = "fields[update_freq]" id="t12" form ="datasetform" class="form-control" required>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-A"> Igal aastal </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-B"> Igal tööpäeval </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-D"> Igal päeval </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-M"> Igal kuul </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-N"> Igas minutis </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-Q"> Kord kvartalis </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-S"> Kaks korda aastas </option>
<option value ="http://purl.org/linked-data/sdmx/2009/code#freq-W"> Igal nädalal </option>
</select>
</div>
</div>
<div class = "form-group row">
<div class ="col-md-3 mb-3">
<label class = "label-required" for = "t13">Andmevaldaja e. organisatsioon </label>
<input name="fields[organization]" id = "t13" type="text" class="form-control mb-2" required>
</div>
<div class ="col-md-3 mb-3">
<label for = "t14">Andmestiku haldaja </label>
<input name="fields[maintainer_name]" id = "t14" type="text" class="form-control mb-2">
</div>
<div class ="col-md-3 mb-3">
<label for = "t15">Andmestiku haldaja e-mail </label>
<input name="fields[maintainer_email]" id = "t15" type="email" class="form-control mb-2">
</div>
<div class ="col-md-3 mb-3">
<label for = "t16">Andmestiku haldaja telefon </label>
<input name="fields[maintainer_phone]" id = "t16" type="text" class="form-control mb-2">
</div>
</div>
<button class = "btn-primary" type="submit">Jätkan</button>
</form>