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