1 {
if="empty($batch_mode)"}
3 <html{
if=
"$language !== 'auto'"}
lang=
"{$language}"{/if}
>
8 {
include="page.header"}
10 {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore}
11 {
function="extract($value) ? '' : ''"}
13 <div id=
"editlinkform" class=
"edit-link-container" class=
"pure-g">
14 <div class=
"pure-u-lg-1-5 pure-u-1-24"></div>
17 action=
"{$base_path}/admin/shaare"
18 class=
"page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"
20 {$asyncLoadClass=$link_is_new && $async_metadata && empty($link.title) ? 'loading-input' : ''}
22 <h2 class=
"window-title">
23 {
if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if}
25 {
if="isset($link.id)"}
26 <input type=
"hidden" name=
"lf_id" value=
"{$link.id}">
28 {
if="!$link_is_new"}
<div class=
"created-date">{'Created:'|t} {$link.created|format_date}
</div>{/if}
30 <label for=
"lf_url">{'URL'|t}
</label>
33 <input type=
"text" name=
"lf_url" id=
"lf_url" value=
"{$link.url}" class=
"lf_input">
36 <label for=
"lf_title">{'Title'|t}
</label>
38 <div class=
"{$asyncLoadClass}">
39 <input type=
"text" name=
"lf_title" id=
"lf_title" value=
"{$link.title}"
40 class=
"lf_input {if="!$async_metadata
"}autofocus{/if}"
42 <div class=
"icon-container">
43 <i class=
"loader"></i>
47 <label for=
"lf_description">{'Description'|t}
</label>
49 <div class=
"{if="$retrieve_description
"}{$asyncLoadClass}{/if}">
50 <textarea name=
"lf_description" id=
"lf_description" class=
"autofocus">{$link.description}
</textarea>
51 <div class=
"icon-container">
52 <i class=
"loader"></i>
56 <label for=
"lf_tags">{'Tags'|t}
</label>
58 <div class=
"{if="$retrieve_description
"}{$asyncLoadClass}{/if}">
59 <input type=
"text" name=
"lf_tags" id=
"lf_tags" value=
"{$link.tags}" class=
"lf_input autofocus"
60 data-list=
"{loop="$tags
"}{$key}, {/loop}" data-multiple data-autofirst
autocomplete=
"off" >
61 <div class=
"icon-container">
62 <i class=
"loader"></i>
67 <input type=
"checkbox" name=
"lf_private" id=
"lf_private"
68 {
if=
"$link.private === true"}
71 <label for=
"lf_private">{'Private'|t}
</label>
74 {
if="$formatter==='markdown'"}
76 {'Description will be rendered with'|t}
77 <a href=
"http://daringfireball.net/projects/markdown/syntax" title=
"{'Markdown syntax documentation'|t}">
83 <div id=
"editlink-plugins">
84 {
loop="$edit_link_plugin"}
90 <div class=
"submit-buttons center">
91 {
if="!empty($batch_mode)"}
92 <a href=
"#" class=
"button button-grey" name=
"cancel-batch-link"
93 title=
"{'Remove this bookmark from batch creation/modification.'}"
98 <input type=
"submit" name=
"save_edit" class=
"" id=
"button-save-edit"
99 value=
"{if="$link_is_new
"}{'Save'|t}{else}{'Apply Changes'|t}{/if}">
101 <a href=
"{$base_path}/admin/shaare/delete?id={$link.id}&token={$token}"
102 title=
"" name=
"delete_link" class=
"button button-red confirm-delete">
108 <input type=
"hidden" name=
"token" value=
"{$token}">
109 <input type=
"hidden" name=
"source" value=
"{$source}">
111 <input type=
"hidden" name=
"returnurl" value=
"{$http_referer}">
116 {
if="empty($batch_mode)"}
117 {
include="page.footer"}
118 {
if="$link_is_new && $async_metadata"}
<script src=
"{$asset_path}/js/metadata.min.js?v={$version_hash}#"></script>{/if}