-
Notifications
You must be signed in to change notification settings - Fork 1
/
import.html
104 lines (100 loc) · 2.78 KB
/
import.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
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
<body class="text-light bg-dark">
{include="page.header"}
<form method="POST" enctype="multipart/form-data" name="uploadform" id="uploadform">
<input type="hidden" name="do" value="import" />
<input type="hidden" name="token" value="{$token}" />
<input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize}" />
<h2>{'Import'|t}</h2>
<p>
{'Maximum size allowed:'|t} <strong>{$maxfilesizeHuman}</strong>
</p>
<p class="form-group">
<label for="import-field">
{'From file'|t}:
</label>
<input type="file"
name="filetoupload"
id="import-field"
class=""
accept="text/html"
/>
</p>
<p class="form-group">
<label for="privacy_default">
{'Visibility'|t}
</label>
<span class="custom-control custom-radio">
<input type="radio"
name="privacy"
id="privacy_default"
value="default"
checked
class="custom-control-input"
/>
<label for="privacy_default" class="custom-control-label">
{'Use values from the imported file, default to public'|t}
</label>
</span>
<span class="custom-control custom-radio">
<input type="radio"
name="privacy"
id="privacy_private"
value="private"
class="custom-control-input"
/>
<label for="privacy_private" class="custom-control-label">
{'Import all bookmarks as private'|t}
</label>
</span>
<span class="custom-control custom-radio">
<input type="radio"
name="privacy"
id="privacy_public"
value="public"
class="custom-control-input"
/>
<label for="privacy_public" class="custom-control-label">
{'Import all bookmarks as public'|t}
</label>
</span>
</p>
<p class="custom-control custom-checkbox">
<input type="checkbox"
name="overwrite"
id="overwrite"
class="custom-control-input"
/>
<label for="overwrite" class="custom-control-label">
{'Overwrite existing bookmarks'|t}
</label>
<small class="form-text text-muted">
{'Duplicates based on URL'|t}
</small>
</p>
<p class="form-group">
<label for="default_tags">
{'Add default tags'|t}
</label>
<input type="text"
name="default_tags"
id="default_tags"
class="form-control"
placeholder="{'Tag'|t}1 {'Tag'|t}2"
list="tagsList"
/>
</p>
<p>
<button type="submit"
name="import_file"
class="btn btn-primary"
>{'Import'|t}</button>
</p>
</form>
{include="page.footer"}
</body>
</html>