-
Notifications
You must be signed in to change notification settings - Fork 1
/
wordsUpload.html
86 lines (84 loc) · 3.41 KB
/
wordsUpload.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
<html>
<head>
<title>Upload {{language}} CSV data</title>
</head>
<body>
<h2>Upload CV file to {{language}} database from CSV file.</h2>
<form action="{{upload_url}}" method="POST" enctype="multipart/form-data">
Upload CSV File:
<input type="file" name="file"> <br>
{% if dbNameList|length > 0 %}
Database Name:
<select id="selectDatabase" name="dbName">
{% for dbName in dbNames %}
<option value="{{dbName}}">{{dbName}}</option>
{% endfor %}
</select><br />
{% endif %}
<hr>
<ul>
<li>Index column: <input type="text" size=3 name="indexColumn"></li>
<li>Unicode column: <input type="text" size=3 name="unicodeColumn"></li>
<li>Old Osage column: <input type="text" size=3 name="osageColumn"></li>
<li>English column: <input type="text" size=3 name="englishColumn"></li>
<li>Comment column: <input type="text" size=3 name="commentColumn"></li>
<li>Reference column: <input type="text" size=3 name="referenceColumn"></li>
<br />
<li>Lines to skip at start:
<input type="text" size=3 name="skipLines" value="0"><br /></li>
<li>Maximum # lines to load:
<input type="text" size=5 name="maxLines" value="10000"><br /></li>
</ul>
<input type="checkbox" name="skipEmptyLines" id="skipEmpty" checked>Skip empty lines?
<br />
<input type="submit" name="submit" value="Submit">
</form>
<hr>
<form action="/words/clear/" method="GET">
Delete all contents of database:
<select id="selectDatabase" name="dbName">
{% for dbName in dbNames %}
<option value="{{dbName}}">{{dbName}}</option>
{% endfor %}
<option value="*All*">All</option>
</select><input type="submit" name="submit" value="Submit">
<input type="checkbox" name="confirmClear" id="confirmClear">Really clear entries?
</form>
<hr>
<form action="/words/renameDB/" method="GET">
Rename all contents of old database:
<select id="selectDatabase" name="oldDbName">
{% for dbName in dbNames %}
<option value="{{dbName}}">{{dbName}}</option>
{% endfor %}
<option value="*All*">All</option>
</select>
to new database:
<select id="selectDatabase" name="newDbName">
{% for dbName in dbNames %}
<option value="{{dbName}}">{{dbName}}</option>
{% endfor %}
<option value="*All*">All</option>
</select><input type="submit" name="submit" value="Submit">
<input type="checkbox" name="confirmRename" id="confirmRename">Really rename entries?
</form>
<hr>
<form action="/db/handleDB/" method="GET">
Database name to add: <input type="text" size=20 name="dbName">
<input type="submit" name="submit" value="Submit">
<input type="checkbox" name="confirmAdd" id="confirmAdd">Really add database?
</form>
<hr>
<form action="/db/handleDB/" method="GET">
Database to delete:
<select id="selectDatabase" name="dbName">
{% for dbName in dbNames %}
<option value="{{dbName}}">{{dbName}}</option>
{% endfor %}
</select>
<input type="submit">
<input type="hidden" name="deleteDB" value="deleteDB">
<input type="checkbox" name="confirmDelete" id="confirmDelete">Really delete database?
</form>
</body>
</html>