]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/editlink.html
Apply the new system (Bookmark + Service) to the whole code base
[github/shaarli/Shaarli.git] / tpl / default / editlink.html
CommitLineData
402b0346 1<!DOCTYPE html>
cb974e47 2<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
402b0346
A
3<head>
4 {include="includes"}
5</head>
6<body>
b9b41d25 7 {include="page.header"}
9d0fc862 8 <div id="editlinkform" class="edit-link-container" class="pure-g">
402b0346
A
9 <div class="pure-u-lg-1-5 pure-u-1-24"></div>
10 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light">
807cade6 11 <h2 class="window-title">
5991f7a9 12 {if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if}
807cade6 13 </h2>
402b0346
A
14 {if="isset($link.id)"}
15 <input type="hidden" name="lf_id" value="{$link.id}">
16 {/if}
807cade6 17 {if="!$link_is_new"}<div class="created-date">{'Created:'|t} {$link.created|format_date}</div>{/if}
402b0346
A
18 <div>
19 <label for="lf_url">{'URL'|t}</label>
20 </div>
21 <div>
cf92b4dd 22 <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input">
402b0346
A
23 </div>
24 <div>
25 <label for="lf_title">{'Title'|t}</label>
26 </div>
27 <div>
b9b41d25 28 <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input autofocus">
402b0346
A
29 </div>
30 <div>
31 <label for="lf_description">{'Description'|t}</label>
32 </div>
33 <div>
b9b41d25 34 <textarea name="lf_description" id="lf_description" class="autofocus">{$link.description}</textarea>
402b0346
A
35 </div>
36 <div>
37 <label for="lf_tags">{'Tags'|t}</label>
38 </div>
39 <div>
b9b41d25 40 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input autofocus"
15162272 41 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" >
402b0346
A
42 </div>
43
44 <div>
45 <input type="checkbox" name="lf_private" id="lf_private"
70401690 46 {if="($link_is_new && $default_private_links || $link.private == true)"}
402b0346
A
47 checked="checked"
48 {/if}>
49 &nbsp;<label for="lf_private">{'Private'|t}</label>
50 </div>
51
cf92b4dd
A
52 {if="$formatter==='markdown'"}
53 <div class="md_help">
54 {'Description will be rendered with'|t}
55 <a href="http://daringfireball.net/projects/markdown/syntax" title="{'Markdown syntax documentation'|t}">
56 {'Markdown syntax'|t}
57 </a>.
58 </div>
59 {/if}
60
402b0346
A
61 <div id="editlink-plugins">
62 {loop="$edit_link_plugin"}
63 {$value}
64 {/loop}
65 </div>
66
67
68 <div class="submit-buttons center">
807cade6
A
69 <input type="submit" name="save_edit" class="" id="button-save-edit"
70 value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}">
402b0346 71 {if="!$link_is_new"}
70401690 72 <a href="?delete_link&amp;lf_linkdate={$link.id}&amp;token={$token}"
402b0346
A
73 title="" name="delete_link" class="button button-red confirm-delete">
74 {'Delete'|t}
75 </a>
76 {/if}
77 </div>
78
79 <input type="hidden" name="token" value="{$token}">
80 {if="$http_referer"}
81 <input type="hidden" name="returnurl" value="{$http_referer}">
82 {/if}
83 </form>
84 </div>
b9b41d25 85 {include="page.footer"}
402b0346
A
86</body>
87</html>