aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/addlink.html
blob: 4aac7ff1e69617df47b78f146ed739f030424c1c (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
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
  {include="includes"}
</head>
<body>
{include="page.header"}
<div class="pure-g">
  <div class="pure-u-lg-1-3 pure-u-1-24"></div>
  <div id="addlink-form" class="page-form  page-form-light pure-u-lg-1-3 pure-u-22-24">
    <h2 class="window-title">{"Shaare a new link"|t}</h2>
    <form method="GET" action="{$base_path}/admin/shaare" name="addform" class="addform">
      <div>
        <label for="shaare">{'URL or leave empty to post a note'|t}</label>
        <input type="text" name="post" id="shaare" class="autofocus">
      </div>
      <div>
        <input type="submit" value="{'Add link'|t}">
      </div>
    </form>
  </div>
</div>

<div class="pure-g addlink-batch-show-more-block pure-u-0">
  <div class="pure-u-lg-1-3 pure-u-1-24"></div>
  <div class="pure-u-lg-1-3 pure-u-22-24 addlink-batch-show-more">
    <a href="#">{'BULK CREATION'|t}&nbsp;<i class="fa fa-plus-circle" aria-hidden="true"></i></a>
  </div>
</div>

<div class="addlink-batch-form-block">
  {if="empty($async_metadata)"}
    <div class="pure-g pure-alert pure-alert-warning pure-alert-closable">
      <div class="pure-u-2-24"></div>
      <div class="pure-u-20-24">
        <p>
          {'Metadata asynchronous retrieval is disabled.'|t}
          {'We recommend that you enable the setting <em>general > enable_async_metadata</em> in your configuration file to use bulk link creation.'|t}
        </p>
      </div>
      <div class="pure-u-2-24">
        <i class="fa fa-times pure-alert-close"></i>
      </div>
    </div>
  {/if}

  <div class="pure-g">
    <div class="pure-u-lg-1-3 pure-u-1-24"></div>
    <div id="batch-addlink-form" class="page-form  page-form-light pure-u-lg-1-3 pure-u-22-24">
      <h2 class="window-title">{"Shaare multiple new links"|t}</h2>
      <form method="POST" action="{$base_path}/admin/shaare-batch" name="batch-addform" class="batch-addform">
        <div>
          <label for="urls">{'Add one URL per line to create multiple bookmarks.'|t}</label>
          <textarea name="urls" id="urls"></textarea>

          <div>
            <label for="tags">{'Tags'|t}</label>
          </div>
          <div>
            <input type="text" name="tags" id="tags" class="lf_input"
                   data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off">
          </div>

          <div>
            <input type="hidden" name="private" value="0">
            <input type="checkbox" name="private" {if="$default_private_links"} checked="checked"{/if}>
          &nbsp; <label for="lf_private">{'Private'|t}</label>
          </div>
        </div>
        <div>
          <input type="hidden" name="token" value="{$token}">
          <input type="submit" value="{'Add links'|t}">
        </div>
      </form>
    </div>
  </div>
</div>

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