aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/import.html
blob: 3d8610f0d7022c1f58a6630ed29cb8279f4ecafe (plain) (blame)
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
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
  {include="includes"}
</head>
<body>
{include="page.header"}

<form method="POST" action="./?do=import" enctype="multipart/form-data" name="uploadform" id="uploadform">
  <div class="pure-g">
    <div class="pure-u-lg-1-4 pure-u-1-24"></div>
    <div class="pure-u-lg-1-2 pure-u-22-24 page-form page-form-complete">
      <div>
        <h2 class="window-title">{"Import Database"|t}</h2>
      </div>

      <input type="hidden" name="token" value="{$token}">
      <div class="center import-field-container" id="import-field">
        <input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize}">
        <input type="file" name="filetoupload">
        <p><br>{'Maximum size allowed:'|t} <strong>{$maxfilesizeHuman}</strong></p>
      </div>

      <div class="pure-g">
        <div class="pure-u-lg-1-3 pure-u-1">
          <div class="form-label">
            <label><span class="label-name">{'Visibility'|t}</span></label>
          </div>
        </div>
        <div class="pure-u-lg-2-3 pure-u-1">
          <div class="radio-buttons">
            <div>
              <input type="radio" name="privacy" value="default" checked="checked">
              {'Use values from the imported file, default to public'|t}
            </div>
            <div>
              <input type="radio" name="privacy" value="private">
              {'Import all bookmarks as private'|t}
            </div>
            <div>
              <input type="radio" name="privacy" value="public">
              {'Import all bookmarks as public'|t}
            </div>
          </div>
        </div>
      </div>

      <div class="pure-g">
        <div class="pure-u-lg-1-3 pure-u-7-8">
          <div class="form-label">
            <label for="overwrite">
              <span class="label-name">{'Overwrite existing bookmarks'|t}</span><br>
              <span class="label-desc">{'Duplicates based on URL'|t}</span>
            </label>
          </div>
        </div>
        <div class="pure-u-lg-2-3 pure-u-1-8">
          <div class="form-input">
            <input type="checkbox" name="overwrite" id="overwrite">
          </div>
        </div>
      </div>

      <div class="pure-g">
        <div class="pure-u-lg-1-3 pure-u-1">
          <div class="form-label">
            <label for="default_tags"><span class="label-name">{'Add default tags'|t}</span></label>
          </div>
        </div>
        <div class="pure-u-lg-2-3 pure-u-1">
          <div class="form-input">
            <input type="text" name="default_tags" id="default_tags" aria-label="{'Tag'|t}" placeholder="{'Tag'|t}">
          </div>
        </div>
      </div>

      <div class="center">
        <input type="submit" name="import_file" value="{'Import'|t}">
      </div>
    </div>
  </div>
</form>

{include="page.footer"}
</body>
</html>