diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-08-27 10:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 10:27:34 +0200 |
commit | af41d5ab5d2bd3ba64d052c997bc6afa6966a63c (patch) | |
tree | 8fad2829c55f94022e359fa8914e11f80a2afc2a /tpl/vintage/editlink.html | |
parent | b8e3630f2ecd142d397b1b062a346a667bb78595 (diff) | |
parent | 0c6fdbe12bbbb336348666b14b82096f24d5858b (diff) | |
download | Shaarli-af41d5ab5d2bd3ba64d052c997bc6afa6966a63c.tar.gz Shaarli-af41d5ab5d2bd3ba64d052c997bc6afa6966a63c.tar.zst Shaarli-af41d5ab5d2bd3ba64d052c997bc6afa6966a63c.zip |
Merge pull request #1511 from ArthurHoaro/wip-slim-routing
Diffstat (limited to 'tpl/vintage/editlink.html')
-rw-r--r-- | tpl/vintage/editlink.html | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tpl/vintage/editlink.html b/tpl/vintage/editlink.html index 6f7a330f..c3671b1f 100644 --- a/tpl/vintage/editlink.html +++ b/tpl/vintage/editlink.html | |||
@@ -1,20 +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}"> | 14 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> |
19 | {if="isset($link.id)"} | 15 | {if="isset($link.id)"} |
20 | <input type="hidden" name="lf_id" value="{$link.id}"> | 16 | <input type="hidden" name="lf_id" value="{$link.id}"> |
@@ -48,19 +44,18 @@ | |||
48 | {/if} | 44 | {/if} |
49 | <input type="submit" value="Save" name="save_edit" class="bigbutton"> | 45 | <input type="submit" value="Save" name="save_edit" class="bigbutton"> |
50 | {if="!$link_is_new && isset($link.id)"} | 46 | {if="!$link_is_new && isset($link.id)"} |
51 | <a href="?delete_link&lf_linkdate={$link.id}&token={$token}" | 47 | <a href="{$base_path}/admin/shaare/delete?id={$link.id}&token={$token}" |
52 | name="delete_link" class="bigbutton" | 48 | name="delete_link" class="bigbutton" |
53 | onClick="return confirmDeleteLink();"> | 49 | onClick="return confirmDeleteLink();"> |
54 | {'Delete'|t} | 50 | {'Delete'|t} |
55 | </a> | 51 | </a> |
56 | {/if} | 52 | {/if} |
57 | <input type="hidden" name="token" value="{$token}"> | 53 | <input type="hidden" name="token" value="{$token}"> |
54 | <input type="hidden" name="source" value="{$source}"> | ||
58 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if} | 55 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if} |
59 | </form> | 56 | </form> |
60 | </div> | 57 | </div> |
61 | </div> | 58 | </div> |
62 | {if="$source !== 'firefoxsocialapi'"} | ||
63 | {include="page.footer"} | 59 | {include="page.footer"} |
64 | {/if} | ||
65 | </body> | 60 | </body> |
66 | </html> | 61 | </html> |