]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/editlink.html
Merge pull request #1689 from ArthurHoaro/fix/bulk-add-html-label
[github/shaarli/Shaarli.git] / tpl / default / editlink.html
CommitLineData
8fbc29de 1{$batchId=isset($batchId) ? $batchId : ''}
5d8de758 2{if="empty($batch_mode)"}
402b0346 3<!DOCTYPE html>
cb974e47 4<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
402b0346
A
5<head>
6 {include="includes"}
7</head>
8<body>
b9b41d25 9 {include="page.header"}
5d8de758
A
10{else}
11 {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore}
12 {function="extract($value) ? '' : ''"}
13{/if}
8fbc29de 14 <div id="editlinkform{$batchId}" class="edit-link-container" class="pure-g">
402b0346 15 <div class="pure-u-lg-1-5 pure-u-1-24"></div>
c22fa57a
A
16 <form method="post"
17 name="linkform"
9c75f877 18 action="{$base_path}/admin/shaare"
c22fa57a
A
19 class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"
20 >
4cf3564d
A
21 {$asyncLoadClass=$link_is_new && $async_metadata && empty($link.title) ? 'loading-input' : ''}
22
807cade6 23 <h2 class="window-title">
5991f7a9 24 {if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if}
807cade6 25 </h2>
402b0346
A
26 {if="isset($link.id)"}
27 <input type="hidden" name="lf_id" value="{$link.id}">
28 {/if}
807cade6 29 {if="!$link_is_new"}<div class="created-date">{'Created:'|t} {$link.created|format_date}</div>{/if}
402b0346 30 <div>
8fbc29de 31 <label for="lf_url{$batchId}">{'URL'|t}</label>
402b0346
A
32 </div>
33 <div>
8fbc29de 34 <input type="text" name="lf_url" id="lf_url{$batchId}" value="{$link.url}" class="lf_input">
402b0346
A
35 </div>
36 <div>
8fbc29de 37 <label for="lf_title{$batchId}">{'Title'|t}</label>
402b0346 38 </div>
4cf3564d 39 <div class="{$asyncLoadClass}">
8fbc29de 40 <input type="text" name="lf_title" id="lf_title{$batchId}" value="{$link.title}"
4cf3564d
A
41 class="lf_input {if="!$async_metadata"}autofocus{/if}"
42 >
43 <div class="icon-container">
44 <i class="loader"></i>
45 </div>
402b0346
A
46 </div>
47 <div>
8fbc29de 48 <label for="lf_description{$batchId}">{'Description'|t}</label>
402b0346 49 </div>
4cf3564d 50 <div class="{if="$retrieve_description"}{$asyncLoadClass}{/if}">
8fbc29de 51 <textarea name="lf_description" id="lf_description{$batchId}" class="autofocus">{$link.description}</textarea>
4cf3564d
A
52 <div class="icon-container">
53 <i class="loader"></i>
54 </div>
402b0346
A
55 </div>
56 <div>
8fbc29de 57 <label for="lf_tags{$batchId}">{'Tags'|t}</label>
402b0346 58 </div>
4cf3564d 59 <div class="{if="$retrieve_description"}{$asyncLoadClass}{/if}">
8fbc29de 60 <input type="text" name="lf_tags" id="lf_tags{$batchId}" value="{$link.tags}" class="lf_input autofocus"
15162272 61 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" >
4cf3564d
A
62 <div class="icon-container">
63 <i class="loader"></i>
64 </div>
402b0346
A
65 </div>
66
67 <div>
8fbc29de 68 <input type="checkbox" name="lf_private" id="lf_private{$batchId}"
25e90d8d 69 {if="$link.private === true"}
402b0346
A
70 checked="checked"
71 {/if}>
8fbc29de 72 &nbsp;<label for="lf_private{$batchId}">{'Private'|t}</label>
402b0346
A
73 </div>
74
cf92b4dd
A
75 {if="$formatter==='markdown'"}
76 <div class="md_help">
77 {'Description will be rendered with'|t}
78 <a href="http://daringfireball.net/projects/markdown/syntax" title="{'Markdown syntax documentation'|t}">
79 {'Markdown syntax'|t}
80 </a>.
81 </div>
82 {/if}
83
402b0346
A
84 <div id="editlink-plugins">
85 {loop="$edit_link_plugin"}
86 {$value}
87 {/loop}
88 </div>
89
90
91 <div class="submit-buttons center">
5d8de758
A
92 {if="!empty($batch_mode)"}
93 <a href="#" class="button button-grey" name="cancel-batch-link"
94 title="{'Remove this bookmark from batch creation/modification.'}"
95 >
96 {'Cancel'|t}
97 </a>
98 {/if}
807cade6
A
99 <input type="submit" name="save_edit" class="" id="button-save-edit"
100 value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}">
402b0346 101 {if="!$link_is_new"}
9c75f877 102 <a href="{$base_path}/admin/shaare/delete?id={$link.id}&amp;token={$token}"
402b0346
A
103 title="" name="delete_link" class="button button-red confirm-delete">
104 {'Delete'|t}
105 </a>
106 {/if}
107 </div>
108
109 <input type="hidden" name="token" value="{$token}">
1ab67544 110 <input type="hidden" name="source" value="{$source}">
402b0346
A
111 {if="$http_referer"}
112 <input type="hidden" name="returnurl" value="{$http_referer}">
113 {/if}
114 </form>
115 </div>
5d8de758
A
116
117{if="empty($batch_mode)"}
b9b41d25 118 {include="page.footer"}
4cf3564d 119 {if="$link_is_new && $async_metadata"}<script src="{$asset_path}/js/metadata.min.js?v={$version_hash}#"></script>{/if}
402b0346
A
120</body>
121</html>
5d8de758 122{/if}