]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/vintage/editlink.html
Merge pull request #1511 from ArthurHoaro/wip-slim-routing
[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 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
15 {if="isset($link.id)"}
16 <input type="hidden" name="lf_id" value="{$link.id}">
17 {/if}
18 <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>
19 <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>
20 <label for="lf_description"><i>Description</i></label><br><textarea name="lf_description" id="lf_description" rows="4" cols="25">{$link.description}</textarea><br>
21 <label for="lf_tags"><i>Tags</i></label><br>
22 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
23 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" ><br>
24
25 {if="$formatter==='markdown'"}
26 <div class="md_help">
27 {'Description will be rendered with'|t}
28 <a href="http://daringfireball.net/projects/markdown/syntax" title="{'Markdown syntax documentation'|t}">
29 {'Markdown syntax'|t}
30 </a>.
31 </div>
32 {/if}
33
34 {loop="$edit_link_plugin"}
35 {$value}
36 {/loop}
37
38 {if="($link_is_new && $default_private_links) || $link.private == true"}
39 <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
40 &nbsp;<label for="lf_private"><i>Private</i></label><br>
41 {else}
42 <input type="checkbox" name="lf_private" id="lf_private">
43 &nbsp;<label for="lf_private"><i>Private</i></label><br><br>
44 {/if}
45 <input type="submit" value="Save" name="save_edit" class="bigbutton">
46 {if="!$link_is_new && isset($link.id)"}
47 <a href="{$base_path}/admin/shaare/delete?id={$link.id}&amp;token={$token}"
48 name="delete_link" class="bigbutton"
49 onClick="return confirmDeleteLink();">
50 {'Delete'|t}
51 </a>
52 {/if}
53 <input type="hidden" name="token" value="{$token}">
54 <input type="hidden" name="source" value="{$source}">
55 {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
56 </form>
57 </div>
58 </div>
59 {include="page.footer"}
60 </body>
61 </html>