diff options
author | Sébastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-04 11:49:33 -0800 |
---|---|---|
committer | Sébastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-04 11:49:33 -0800 |
commit | 22701e2d0b49cd1c393847676e62149ba2ccda03 (patch) | |
tree | 1850c60d4758ae2d865ff23b83466ef3e465e489 /tpl/editlink.html | |
parent | dd064cc315374a419a29391c6ee0d1675d11ef4d (diff) | |
parent | bb8f712db66f8e572eba4b14f636aeeace7cd9e7 (diff) | |
download | Shaarli-22701e2d0b49cd1c393847676e62149ba2ccda03.tar.gz Shaarli-22701e2d0b49cd1c393847676e62149ba2ccda03.tar.zst Shaarli-22701e2d0b49cd1c393847676e62149ba2ccda03.zip |
Merge pull request #30 from Knah-Tsaeb/master
Merged "Private by default" feature (when creating a new link).
Diffstat (limited to 'tpl/editlink.html')
-rw-r--r-- | tpl/editlink.html | 10 |
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"> <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 | <label for="lf_private"><i>Private</i></label><br> | ||
20 | {else} | ||
21 | <input type="checkbox" name="lf_private" id="lf_private"> | ||
22 | <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} |