]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/vintage/editlink.html
eb8807b5a2d0fc7bdbc594f0a020815f3e331834
[github/shaarli/Shaarli.git] / tpl / vintage / editlink.html
1 <!DOCTYPE html>
2 <html>
3 <head>{include="includes"}
4 </head>
5 <body
6 {if="$link.title==''"}onload="document.linkform.lf_title.focus();"
7 {elseif="$link.description==''"}onload="document.linkform.lf_description.focus();"
8 {else}onload="document.linkform.lf_tags.focus();"{/if} >
9 <div id="pageheader">
10 {include="page.header"}
11 <div id="shaarli_title"><a href="{$titleLink}">{$shaarlititle}</a></div>
12 <div id="editlinkform">
13 <form method="post" name="linkform" action="{$base_path}/admin/shaare">
14 {if="isset($link.id)"}
15 <input type="hidden" name="lf_id" value="{$link.id}">
16 {/if}
17 <label for="lf_url"><i>URL</i></label><br><input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"><br>
18 <label for="lf_title"><i>Title</i></label><br><input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input"><br>
19 <label for="lf_description"><i>Description</i></label><br><textarea name="lf_description" id="lf_description" rows="4" cols="25">{$link.description}</textarea><br>
20 <label for="lf_tags"><i>Tags</i></label><br>
21 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
22 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" ><br>
23
24 {if="$formatter==='markdown'"}
25 <div class="md_help">
26 {'Description will be rendered with'|t}
27 <a href="http://daringfireball.net/projects/markdown/syntax" title="{'Markdown syntax documentation'|t}">
28 {'Markdown syntax'|t}
29 </a>.
30 </div>
31 {/if}
32
33 {loop="$edit_link_plugin"}
34 {$value}
35 {/loop}
36
37 {if="($link_is_new && $default_private_links) || $link.private == true"}
38 <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
39 &nbsp;<label for="lf_private"><i>Private</i></label><br>
40 {else}
41 <input type="checkbox" name="lf_private" id="lf_private">
42 &nbsp;<label for="lf_private"><i>Private</i></label><br><br>
43 {/if}
44 <input type="submit" value="Save" name="save_edit" class="bigbutton">
45 {if="!$link_is_new && isset($link.id)"}
46 <a href="{$base_path}/admin/shaare/delete?id={$link.id}&amp;token={$token}"
47 name="delete_link" class="bigbutton"
48 onClick="return confirmDeleteLink();">
49 {'Delete'|t}
50 </a>
51 {/if}
52 <input type="hidden" name="token" value="{$token}">
53 <input type="hidden" name="source" value="{$source}">
54 {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
55 </form>
56 </div>
57 </div>
58 {include="page.footer"}
59 </body>
60 </html>