diff options
author | VirtualTam <virtualtam@flibidi.org> | 2014-12-02 21:00:52 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.org> | 2014-12-03 19:28:43 +0100 |
commit | c133612f32849b76785635efe19d4afedcfd0248 (patch) | |
tree | 0ecbebedef56698fa991a60196e06435d4e2f3d7 /tpl/editlink.html | |
parent | fdd8fb2be2c45bd810a2d8b55c1f2cbf7f655fe3 (diff) | |
download | Shaarli-c133612f32849b76785635efe19d4afedcfd0248.tar.gz Shaarli-c133612f32849b76785635efe19d4afedcfd0248.tar.zst Shaarli-c133612f32849b76785635efe19d4afedcfd0248.zip |
CSS: remove hardcoded style from templates
Fixes shaarli/Shaarli#29
Style elements refactored as follows:
- use existing ids and classes if possible,
- else, define new ones and stick with the existing naming convention,
- remove hardcoded style attributes from RainTPL templates.
Exception:
In tpl/tagcloud.html, the display size of each tag is computed at page
generation.
Signed-off-by: VirtualTam <virtualtam@flibidi.org>
Diffstat (limited to 'tpl/editlink.html')
-rw-r--r-- | tpl/editlink.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tpl/editlink.html b/tpl/editlink.html index 48945a30..454dfff4 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html | |||
@@ -12,10 +12,10 @@ | |||
12 | <div id="editlinkform"> | 12 | <div id="editlinkform"> |
13 | <form method="post" name="linkform"> | 13 | <form method="post" name="linkform"> |
14 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> | 14 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> |
15 | <i>URL</i><br><input type="text" name="lf_url" value="{$link.url|htmlspecialchars}" style="width:100%"><br> | 15 | <i>URL</i><br><input type="text" name="lf_url" value="{$link.url|htmlspecialchars}" class="lf_input"><br> |
16 | <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br> | 16 | <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" class="lf_input"><br> |
17 | <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br> | 17 | <i>Description</i><br><textarea name="lf_description" rows="4" cols="25">{$link.description|htmlspecialchars}</textarea><br> |
18 | <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br> | 18 | <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" class="lf_input"><br> |
19 | {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"} | 19 | {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"} |
20 | <input type="checkbox" checked="checked" name="lf_private" id="lf_private"> | 20 | <input type="checkbox" checked="checked" name="lf_private" id="lf_private"> |
21 | <label for="lf_private"><i>Private</i></label><br> | 21 | <label for="lf_private"><i>Private</i></label><br> |
@@ -23,9 +23,9 @@ | |||
23 | <input type="checkbox" name="lf_private" id="lf_private"> | 23 | <input type="checkbox" name="lf_private" id="lf_private"> |
24 | <label for="lf_private"><i>Private</i></label><br> | 24 | <label for="lf_private"><i>Private</i></label><br> |
25 | {/if} | 25 | {/if} |
26 | <input type="submit" value="Save" name="save_edit" class="bigbutton" style="margin-left:40px;"> | 26 | <input type="submit" value="Save" name="save_edit" class="bigbutton"> |
27 | <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton" style="margin-left:40px;"> | 27 | <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton"> |
28 | {if="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if} | 28 | {if="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton delete" onClick="return confirmDeleteLink();">{/if} |
29 | <input type="hidden" name="token" value="{$token}"> | 29 | <input type="hidden" name="token" value="{$token}"> |
30 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer|htmlspecialchars}">{/if} | 30 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer|htmlspecialchars}">{/if} |
31 | </form> | 31 | </form> |