]>
Commit | Line | Data |
---|---|---|
402b0346 A |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head> | |
4 | {include="includes"} | |
5 | </head> | |
6 | <body> | |
b9b41d25 | 7 | {include="page.header"} |
402b0346 A |
8 | <div id="editlinkform" class="pure-g"> |
9 | <div class="pure-u-lg-1-5 pure-u-1-24"></div> | |
10 | <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"> | |
807cade6 A |
11 | <h2 class="window-title"> |
12 | {if="!$link_is_new"}{'Edit'|t}{/if} | |
13 | {'Shaare'|t} | |
14 | </h2> | |
402b0346 A |
15 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> |
16 | {if="isset($link.id)"} | |
17 | <input type="hidden" name="lf_id" value="{$link.id}"> | |
18 | {/if} | |
807cade6 | 19 | {if="!$link_is_new"}<div class="created-date">{'Created:'|t} {$link.created|format_date}</div>{/if} |
402b0346 A |
20 | <div> |
21 | <label for="lf_url">{'URL'|t}</label> | |
22 | </div> | |
23 | <div> | |
b9b41d25 | 24 | <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input autofocus"> |
402b0346 A |
25 | </div> |
26 | <div> | |
27 | <label for="lf_title">{'Title'|t}</label> | |
28 | </div> | |
29 | <div> | |
b9b41d25 | 30 | <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input autofocus"> |
402b0346 A |
31 | </div> |
32 | <div> | |
33 | <label for="lf_description">{'Description'|t}</label> | |
34 | </div> | |
35 | <div> | |
b9b41d25 | 36 | <textarea name="lf_description" id="lf_description" class="autofocus">{$link.description}</textarea> |
402b0346 A |
37 | </div> |
38 | <div> | |
39 | <label for="lf_tags">{'Tags'|t}</label> | |
40 | </div> | |
41 | <div> | |
b9b41d25 | 42 | <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input autofocus" |
15162272 | 43 | data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" > |
402b0346 A |
44 | </div> |
45 | ||
46 | <div> | |
47 | <input type="checkbox" name="lf_private" id="lf_private" | |
70401690 | 48 | {if="($link_is_new && $default_private_links || $link.private == true)"} |
402b0346 A |
49 | checked="checked" |
50 | {/if}> | |
51 | <label for="lf_private">{'Private'|t}</label> | |
52 | </div> | |
53 | ||
54 | <div id="editlink-plugins"> | |
55 | {loop="$edit_link_plugin"} | |
56 | {$value} | |
57 | {/loop} | |
58 | </div> | |
59 | ||
60 | ||
61 | <div class="submit-buttons center"> | |
807cade6 A |
62 | <input type="submit" name="save_edit" class="" id="button-save-edit" |
63 | value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}"> | |
402b0346 | 64 | {if="!$link_is_new"} |
70401690 | 65 | <a href="?delete_link&lf_linkdate={$link.id}&token={$token}" |
402b0346 A |
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> | |
b9b41d25 | 78 | {include="page.footer"} |
402b0346 A |
79 | </body> |
80 | </html> |