aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/import.html
blob: 6c44c0f58fc33889fe5ffad71dcd006ef67a56e6 (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
87
<!DOCTYPE html>
<html>
<head>
  {include="includes"}
</head>
<body>
{include="page.header"}

{$ratioLabel='5-12'}
{$ratioLabelMobile='7-8'}
{$ratioInput='7-12'}
{$ratioInputMobile='1-8'}

<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-8"></div>
    <div class="pure-u-lg-1-2 pure-u-3-4 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" id="import-field">
        <input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize}">
        <input type="file" name="filetoupload">
      </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="true">
              Use values from the imported file, default to public
            </div>
            <div>
              <input type="radio" name="privacy" value="private">
              Import all bookmarks as private
            </div>
            <div>
              <input type="radio" name="privacy" value="public">
              Import all bookmarks as public
            </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></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">
          </div>
        </div>
      </div>

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

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