-
Notifications
You must be signed in to change notification settings - Fork 0
/
addlink.html
82 lines (75 loc) · 2.82 KB
/
addlink.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
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
<body>
{include="page.header"}
<div class="pure-g pure-g-full">
<div class="pure-u-2-24"></div>
<div id="addlink-form" class="page-form pure-u-20-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 class="submit-buttons">
<input type="submit" value="{'Add link'|t}">
</div>
</form>
</div>
</div>
<div class="pure-g pure-g-full addlink-batch-show-more-block pure-u-0">
<div class="pure-u-2-24"></div>
<div class="pure-u-20-24 page-form addlink-batch-show-more">
<h3><a href="#">{'BULK CREATION'|t} <i class="fa fa-plus-circle" aria-hidden="true"></i></a></h3>
</div>
</div>
<div class="addlink-batch-form-block">
{if="empty($async_metadata)"}
<div class="pure-g pure-g-full 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 pure-g-full">
<div class="pure-u-2-24"></div>
<div id="batch-addlink-form" class="page-form page-form-light pure-u-20-24">
<form method="POST" action="{$base_path}/admin/shaare-batch" name="batch-addform" class="batch-addform">
<h2 class="window-title">{"Shaare multiple new links"|t}</h2>
<p>
<label for="urls">{'Add one URL per line to create multiple bookmarks.'|t}</label>
<textarea name="urls" id="urls"></textarea>
</p>
<p>
<label for="tags">{'Tags'|t}
<input type="text" name="tags" id="tags" class="lf_input"
data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off">
</label>
</p>
<p>
<input type="hidden" name="private" value="0">
<label>
<input type="checkbox" name="private" {if="$default_private_links"} checked="checked"{/if}>
{'Private'|t}</label>
</p>
<div class="submit-buttons">
<input type="hidden" name="token" value="{$token}">
<input type="submit" value="{'Add links'|t}">
</div>
</form>
</div>
</div>
</div>
{include="page.footer"}
</body>
</html>