aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-06-07 16:12:12 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-07 12:17:36 +0200
commitf791ba634e733811b3e10bb662e30cd5ba0b29e3 (patch)
tree7e76730965d3544bac2dcca460ea729273df8d7b /tpl
parent09d6e7e0503535f64f374f570037b0dbff09be7b (diff)
downloadShaarli-f791ba634e733811b3e10bb662e30cd5ba0b29e3.tar.gz
Shaarli-f791ba634e733811b3e10bb662e30cd5ba0b29e3.tar.zst
Shaarli-f791ba634e733811b3e10bb662e30cd5ba0b29e3.zip
Edit link WIP + upgrade awesomplete
Diffstat (limited to 'tpl')
-rw-r--r--tpl/default/editlink.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
new file mode 100644
index 00000000..f831655c
--- /dev/null
+++ b/tpl/default/editlink.html
@@ -0,0 +1,82 @@
1<!DOCTYPE html>
2<html>
3<head>
4 {include="includes"}
5</head>
6<body>
7 {if="$source !== 'firefoxsocialapi'"}
8 {include="page.header"}
9 {/if}
10 <div id="editlinkform" class="pure-g">
11 <div class="pure-u-lg-1-5 pure-u-1-8"></div>
12 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-3-4" >
13 <h2>Shaare</h2>
14 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
15 <div>
16 <label for="lf_url">URL</label>
17 </div>
18 <div>
19 <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input">
20 </div>
21 <div>
22 <label for="lf_title">Title</label>
23 </div>
24 <div>
25 <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input">
26 </div>
27 <div>
28 <label for="lf_description">Description</label>
29 </div>
30 <div>
31 <textarea name="lf_description" id="lf_description">{$link.description}</textarea>
32 </div>
33 <div>
34 <label for="lf_tags">Tags</label>
35 </div>
36 <div>
37 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
38 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" >
39 </div>
40
41 <div>
42 <input type="checkbox" name="lf_private" id="lf_private"
43 {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}
44 checked="checked"
45 {/if}>
46 &nbsp;<label for="lf_private">Private</label>
47 </div>
48
49 <div id="editlink-plugins">
50 {loop="$edit_link_plugin"}
51 {$value}
52 {/loop}
53 </div>
54
55 <div>
56 <input type="submit" value="Save" name="save_edit">
57 {if="!$link_is_new"}
58 <input type="submit" value="Delete" name="delete_link" class="delete-link">
59 {/if}
60 </div>
61
62 <input type="hidden" name="token" value="{$token}">
63 {if="$http_referer"}
64 <input type="hidden" name="returnurl" value="{$http_referer}">
65 {/if}
66 </form>
67 </div>
68 {if="$source !== 'firefoxsocialapi'"}
69 {include="page.footer"}
70 {/if}
71<script>
72 awesompleteUniqueTag('#lf_tags');
73 if (!'{$link.title}') {
74 document.linkform.lf_title.focus();
75 } else if (!'{$link.description}') {
76 document.linkform.lf_description.focus();
77 } else {
78 document.linkform.lf_tags.focus();
79 }
80</script>
81</body>
82</html>