aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/editlink.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-14 15:52:17 +0100
committerArthurHoaro <arthur@hoa.ro>2017-02-27 20:01:54 +0100
commit402b03464812aaec76bc841ca7dacb775baf1e03 (patch)
tree5f5ce030a71ed1ac327f60911cb22f0ca87d21cd /tpl/default/editlink.html
parent009ce9358168cc06c76fc2f4162829e552e633a3 (diff)
downloadShaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.gz
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.zst
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.zip
Introduce the new default Shaarli template
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r--tpl/default/editlink.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
new file mode 100644
index 00000000..4f10ffb2
--- /dev/null
+++ b/tpl/default/editlink.html
@@ -0,0 +1,98 @@
1<!DOCTYPE html>
2<html>
3<head>
4 {include="includes"}
5</head>
6<body>
7 {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"}
8 {include="page.header"}
9 {else}
10 <div class="center">Shaare to: {$shaarlititle}</div>
11 {/if}
12 <div id="editlinkform" class="pure-g">
13 <div class="pure-u-lg-1-5 pure-u-1-24"></div>
14 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light">
15 <h2 class="window-title">{'Shaare'|t}</h2>
16 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
17 {if="isset($link.id)"}
18 <input type="hidden" name="lf_id" value="{$link.id}">
19 {/if}
20 <div>
21 <label for="lf_url">{'URL'|t}</label>
22 </div>
23 <div>
24 <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input">
25 </div>
26 <div>
27 <label for="lf_title">{'Title'|t}</label>
28 </div>
29 <div>
30 <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input">
31 </div>
32 <div>
33 <label for="lf_description">{'Description'|t}</label>
34 </div>
35 <div>
36 <textarea name="lf_description" id="lf_description" onkeyup="textAreaAdjust(this)"
37 >{$link.description}</textarea>
38 </div>
39 <div>
40 <label for="lf_tags">{'Tags'|t}</label>
41 </div>
42 <div>
43 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
44 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" >
45 </div>
46
47 <div>
48 <input type="checkbox" name="lf_private" id="lf_private"
49 {if="($link_is_new && $default_private_links) || $link.private == true"}
50 checked="checked"
51 {/if}>
52 &nbsp;<label for="lf_private">{'Private'|t}</label>
53 </div>
54
55 <div id="editlink-plugins">
56 {loop="$edit_link_plugin"}
57 {$value}
58 {/loop}
59 </div>
60
61
62 <div class="submit-buttons center">
63 <input type="submit" value="{'Save'|t}" name="save_edit" class="">
64 {if="!$link_is_new"}
65 <a href="?delete_link&amp;lf_linkdate={$value.id}&amp;token={$token}"
66 title="" name="delete_link" class="button button-red confirm-delete">
67 {'Delete'|t}
68 </a>
69 {/if}
70 </div>
71
72 <input type="hidden" name="token" value="{$token}">
73 {if="$http_referer"}
74 <input type="hidden" name="returnurl" value="{$http_referer}">
75 {/if}
76 </form>
77 </div>
78 {if="$source !== 'firefoxsocialapi'"}
79 {include="page.footer"}
80 {/if}
81<script>
82 awesompleteUniqueTag('#lf_tags');
83 if (!document.linkform.lf_title.value) {
84 document.linkform.lf_title.focus();
85 } else if (!document.linkform.lf_description.value) {
86 document.linkform.lf_description.focus();
87 } else {
88 document.linkform.lf_tags.focus();
89 }
90 function textAreaAdjust(el) {
91 el.style.height = (el.scrollHeight > el.clientHeight) ? (el.scrollHeight) + "px" : (el.clientHeight - 18) + "px";
92 }
93 (function (window, document) {
94 textAreaAdjust(document.linkform.lf_description)
95 })(this, this.document);
96</script>
97</body>
98</html>