aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/editlink.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r--tpl/default/editlink.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
index 7ab7e1fe..83e541fd 100644
--- a/tpl/default/editlink.html
+++ b/tpl/default/editlink.html
@@ -1,3 +1,4 @@
1{if="empty($batch_mode)"}
1<!DOCTYPE html> 2<!DOCTYPE html>
2<html{if="$language !== 'auto'"} lang="{$language}"{/if}> 3<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
3<head> 4<head>
@@ -5,6 +6,10 @@
5</head> 6</head>
6<body> 7<body>
7 {include="page.header"} 8 {include="page.header"}
9{else}
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) ? '' : ''"}
12{/if}
8 <div id="editlinkform" class="edit-link-container" class="pure-g"> 13 <div id="editlinkform" class="edit-link-container" class="pure-g">
9 <div class="pure-u-lg-1-5 pure-u-1-24"></div> 14 <div class="pure-u-lg-1-5 pure-u-1-24"></div>
10 <form method="post" 15 <form method="post"
@@ -60,7 +65,7 @@
60 65
61 <div> 66 <div>
62 <input type="checkbox" name="lf_private" id="lf_private" 67 <input type="checkbox" name="lf_private" id="lf_private"
63 {if="($link_is_new && $default_private_links || $link.private == true)"} 68 {if="$link.private === true"}
64 checked="checked" 69 checked="checked"
65 {/if}> 70 {/if}>
66 &nbsp;<label for="lf_private">{'Private'|t}</label> 71 &nbsp;<label for="lf_private">{'Private'|t}</label>
@@ -83,6 +88,13 @@
83 88
84 89
85 <div class="submit-buttons center"> 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.'}"
94 >
95 {'Cancel'|t}
96 </a>
97 {/if}
86 <input type="submit" name="save_edit" class="" id="button-save-edit" 98 <input type="submit" name="save_edit" class="" id="button-save-edit"
87 value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}"> 99 value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}">
88 {if="!$link_is_new"} 100 {if="!$link_is_new"}
@@ -100,7 +112,10 @@
100 {/if} 112 {/if}
101 </form> 113 </form>
102 </div> 114 </div>
115
116{if="empty($batch_mode)"}
103 {include="page.footer"} 117 {include="page.footer"}
104 {if="$link_is_new && $async_metadata"}<script src="{$asset_path}/js/metadata.min.js?v={$version_hash}#"></script>{/if} 118 {if="$link_is_new && $async_metadata"}<script src="{$asset_path}/js/metadata.min.js?v={$version_hash}#"></script>{/if}
105</body> 119</body>
106</html> 120</html>
121{/if}