3 <head>{
include="includes"}
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}
>
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}">
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>
25 {
if="$formatter==='markdown'"}
27 {'Description will be rendered with'|t}
28 <a href=
"http://daringfireball.net/projects/markdown/syntax" title=
"{'Markdown syntax documentation'|t}">
34 {
loop="$edit_link_plugin"}
38 {
if="($link_is_new && $default_private_links) || $link.private == true"}
39 <input type=
"checkbox" checked=
"checked" name=
"lf_private" id=
"lf_private">
40 <label for=
"lf_private"><i>Private
</i></label><br>
42 <input type=
"checkbox" name=
"lf_private" id=
"lf_private">
43 <label for=
"lf_private"><i>Private
</i></label><br><br>
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}&token={$token}"
48 name=
"delete_link" class=
"bigbutton"
49 onClick=
"return confirmDeleteLink();">
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}
59 {
include="page.footer"}