diff options
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r-- | tpl/default/editlink.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html new file mode 100644 index 00000000..3c9b5cda --- /dev/null +++ b/tpl/default/editlink.html | |||
@@ -0,0 +1,89 @@ | |||
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 page-form page-form-light"> | ||
13 | <h2 class="window-title">{'Shaare'|t}</h2> | ||
14 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> | ||
15 | <div> | ||
16 | <label for="lf_url">{'URL'|t}</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'|t}</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'|t}</label> | ||
29 | </div> | ||
30 | <div> | ||
31 | <textarea name="lf_description" id="lf_description" onkeyup="textAreaAdjust(this)" | ||
32 | >{$link.description}</textarea> | ||
33 | </div> | ||
34 | <div> | ||
35 | <label for="lf_tags">{'Tags'|t}</label> | ||
36 | </div> | ||
37 | <div> | ||
38 | <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input" | ||
39 | data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" > | ||
40 | </div> | ||
41 | |||
42 | <div> | ||
43 | <input type="checkbox" name="lf_private" id="lf_private" | ||
44 | {if="($link_is_new && $default_private_links) || $link.private == true"} | ||
45 | checked="checked" | ||
46 | {/if}> | ||
47 | <label for="lf_private">{'Private'|t}</label> | ||
48 | </div> | ||
49 | |||
50 | <div id="editlink-plugins"> | ||
51 | {loop="$edit_link_plugin"} | ||
52 | {$value} | ||
53 | {/loop} | ||
54 | </div> | ||
55 | |||
56 | <div> | ||
57 | <input type="submit" value="{'Save'|t}" name="save_edit"> | ||
58 | {if="!$link_is_new"} | ||
59 | <input type="submit" value="{'Delete'|t}" name="delete_link" class="delete-link"> | ||
60 | {/if} | ||
61 | </div> | ||
62 | |||
63 | <input type="hidden" name="token" value="{$token}"> | ||
64 | {if="$http_referer"} | ||
65 | <input type="hidden" name="returnurl" value="{$http_referer}"> | ||
66 | {/if} | ||
67 | </form> | ||
68 | </div> | ||
69 | {if="$source !== 'firefoxsocialapi'"} | ||
70 | {include="page.footer"} | ||
71 | {/if} | ||
72 | <script> | ||
73 | awesompleteUniqueTag('#lf_tags'); | ||
74 | if (!document.linkform.lf_title.value) { | ||
75 | document.linkform.lf_title.focus(); | ||
76 | } else if (!document.linkform.lf_description.value) { | ||
77 | document.linkform.lf_description.focus(); | ||
78 | } else { | ||
79 | document.linkform.lf_tags.focus(); | ||
80 | } | ||
81 | function textAreaAdjust(el) { | ||
82 | el.style.height = (el.scrollHeight > el.clientHeight) ? (el.scrollHeight) + "px" : (el.clientHeight - 18) + "px"; | ||
83 | } | ||
84 | (function (window, document) { | ||
85 | textAreaAdjust(document.linkform.lf_description) | ||
86 | })(this, this.document); | ||
87 | </script> | ||
88 | </body> | ||
89 | </html> | ||