aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/editlink.html
diff options
context:
space:
mode:
authorKnah Tsaeb <knah-tsaeb@knah-tsaeb.org>2013-03-04 10:18:39 +0100
committerKnah Tsaeb <knah-tsaeb@knah-tsaeb.org>2013-03-04 10:18:39 +0100
commitbb8f712db66f8e572eba4b14f636aeeace7cd9e7 (patch)
tree1850c60d4758ae2d865ff23b83466ef3e465e489 /tpl/editlink.html
parentdd064cc315374a419a29391c6ee0d1675d11ef4d (diff)
downloadShaarli-bb8f712db66f8e572eba4b14f636aeeace7cd9e7.tar.gz
Shaarli-bb8f712db66f8e572eba4b14f636aeeace7cd9e7.tar.zst
Shaarli-bb8f712db66f8e572eba4b14f636aeeace7cd9e7.zip
[add] https://github.com/sebsauvage/Shaarli/issues/20 New links created as private by default.
Diffstat (limited to 'tpl/editlink.html')
-rw-r--r--tpl/editlink.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/tpl/editlink.html b/tpl/editlink.html
index 4ad43b35..ad549137 100644
--- a/tpl/editlink.html
+++ b/tpl/editlink.html
@@ -1,7 +1,7 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"}</head> 3<head>{include="includes"}</head>
4<body 4<body
5{if condition="$link.title==''"}onload="document.linkform.lf_title.focus();" 5{if condition="$link.title==''"}onload="document.linkform.lf_title.focus();"
6{elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();" 6{elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();"
7{else}onload="document.linkform.lf_tags.focus();"{/if} > 7{else}onload="document.linkform.lf_tags.focus();"{/if} >
@@ -14,7 +14,13 @@
14 <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br> 14 <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br>
15 <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br> 15 <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br>
16 <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br> 16 <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br>
17 <input type="checkbox" {if condition="$link.private!=0"}checked="yes"{/if} style="margin:7 0 10 0;" name="lf_private" id="lf_private">&nbsp;<label for="lf_private"><i>Private</i></label><br> 17 {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}
18 <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
19 &nbsp;<label for="lf_private"><i>Private</i></label><br>
20 {else}
21 <input type="checkbox" name="lf_private" id="lf_private">
22 &nbsp;<label for="lf_private"><i>Private</i></label><br>
23 {/if}
18 <input type="submit" value="Save" name="save_edit" class="bigbutton" style="margin-left:40px;"> 24 <input type="submit" value="Save" name="save_edit" class="bigbutton" style="margin-left:40px;">
19 <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton" style="margin-left:40px;"> 25 <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton" style="margin-left:40px;">
20 {if condition="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if} 26 {if condition="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if}