aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/vintage/editlink.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/vintage/editlink.html')
-rw-r--r--tpl/vintage/editlink.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/tpl/vintage/editlink.html b/tpl/vintage/editlink.html
index 5fa7d194..eb8807b5 100644
--- a/tpl/vintage/editlink.html
+++ b/tpl/vintage/editlink.html
@@ -1,21 +1,16 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"} 3<head>{include="includes"}
4 <link type="text/css" rel="stylesheet" href="inc/awesomplete.css#" />
5</head> 4</head>
6<body 5<body
7{if="$link.title==''"}onload="document.linkform.lf_title.focus();" 6{if="$link.title==''"}onload="document.linkform.lf_title.focus();"
8{elseif="$link.description==''"}onload="document.linkform.lf_description.focus();" 7{elseif="$link.description==''"}onload="document.linkform.lf_description.focus();"
9{else}onload="document.linkform.lf_tags.focus();"{/if} > 8{else}onload="document.linkform.lf_tags.focus();"{/if} >
10<div id="pageheader"> 9<div id="pageheader">
11 {if="$source !== 'firefoxsocialapi'"}
12 {include="page.header"} 10 {include="page.header"}
13 {else}
14 <div id="shaarli_title"><a href="{$titleLink}">{$shaarlititle}</a></div> 11 <div id="shaarli_title"><a href="{$titleLink}">{$shaarlititle}</a></div>
15 {/if}
16 <div id="editlinkform"> 12 <div id="editlinkform">
17 <form method="post" name="linkform"> 13 <form method="post" name="linkform" action="{$base_path}/admin/shaare">
18 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
19 {if="isset($link.id)"} 14 {if="isset($link.id)"}
20 <input type="hidden" name="lf_id" value="{$link.id}"> 15 <input type="hidden" name="lf_id" value="{$link.id}">
21 {/if} 16 {/if}
@@ -26,7 +21,16 @@
26 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input" 21 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
27 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" ><br> 22 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" ><br>
28 23
29 {loop="$edit_link_plugin"} 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"}
30 {$value} 34 {$value}
31 {/loop} 35 {/loop}
32 36
@@ -38,21 +42,19 @@
38 &nbsp;<label for="lf_private"><i>Private</i></label><br><br> 42 &nbsp;<label for="lf_private"><i>Private</i></label><br><br>
39 {/if} 43 {/if}
40 <input type="submit" value="Save" name="save_edit" class="bigbutton"> 44 <input type="submit" value="Save" name="save_edit" class="bigbutton">
41 <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton">
42 {if="!$link_is_new && isset($link.id)"} 45 {if="!$link_is_new && isset($link.id)"}
43 <a href="?delete_link&amp;lf_linkdate={$link.id}&amp;token={$token}" 46 <a href="{$base_path}/admin/shaare/delete?id={$link.id}&amp;token={$token}"
44 name="delete_link" class="bigbutton" 47 name="delete_link" class="bigbutton"
45 onClick="return confirmDeleteLink();"> 48 onClick="return confirmDeleteLink();">
46 {'Delete'|t} 49 {'Delete'|t}
47 </a> 50 </a>
48 {/if} 51 {/if}
49 <input type="hidden" name="token" value="{$token}"> 52 <input type="hidden" name="token" value="{$token}">
53 <input type="hidden" name="source" value="{$source}">
50 {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if} 54 {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
51 </form> 55 </form>
52 </div> 56 </div>
53</div> 57</div>
54{if="$source !== 'firefoxsocialapi'"}
55{include="page.footer"} 58{include="page.footer"}
56{/if}
57</body> 59</body>
58</html> 60</html>