diff options
author | Arthur <arthur@hoa.ro> | 2016-02-24 19:34:29 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-02-24 19:34:29 +0100 |
commit | cee0d9609f7cf860cf951ca2d838cfaacecd37d2 (patch) | |
tree | 42b193df7c74e4cf7b769cddb2d9497419b9eb2e | |
parent | fa40b43f60c5367fc28a22d05c3f344ce39340c6 (diff) | |
parent | 81dea5910edcab9c2d3bb9e86691abfdf70b7620 (diff) | |
download | Shaarli-cee0d9609f7cf860cf951ca2d838cfaacecd37d2.tar.gz Shaarli-cee0d9609f7cf860cf951ca2d838cfaacecd37d2.tar.zst Shaarli-cee0d9609f7cf860cf951ca2d838cfaacecd37d2.zip |
Merge pull request #495 from nicolasdanelon/patch-3
Fixes #494: inputs & labels with plugin name
-rw-r--r-- | inc/shaarli.css | 4 | ||||
-rw-r--r-- | tpl/pluginsadmin.html | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/inc/shaarli.css b/inc/shaarli.css index 8a7409b2..1be4d752 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css | |||
@@ -1147,6 +1147,10 @@ ul.errors { | |||
1147 | margin: 10px 0; | 1147 | margin: 10px 0; |
1148 | } | 1148 | } |
1149 | 1149 | ||
1150 | #pluginsadmin label { | ||
1151 | cursor: pointer; | ||
1152 | } | ||
1153 | |||
1150 | #pluginsadmin .plugin_parameter { | 1154 | #pluginsadmin .plugin_parameter { |
1151 | padding: 5px 0; | 1155 | padding: 5px 0; |
1152 | border-width: 1px 0; | 1156 | border-width: 1px 0; |
diff --git a/tpl/pluginsadmin.html b/tpl/pluginsadmin.html index 4f7d091e..5ddcf061 100644 --- a/tpl/pluginsadmin.html +++ b/tpl/pluginsadmin.html | |||
@@ -36,7 +36,7 @@ | |||
36 | <tbody> | 36 | <tbody> |
37 | {loop="$enabledPlugins"} | 37 | {loop="$enabledPlugins"} |
38 | <tr data-line="{$key}" data-order="{$counter}"> | 38 | <tr data-line="{$key}" data-order="{$counter}"> |
39 | <td class="center"><input type="checkbox" name="{$key}" checked="checked"></td> | 39 | <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td> |
40 | <td class="center"> | 40 | <td class="center"> |
41 | <a href="#" | 41 | <a href="#" |
42 | onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));"> | 42 | onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));"> |
@@ -48,8 +48,8 @@ | |||
48 | </a> | 48 | </a> |
49 | <input type="hidden" name="order_{$key}" value="{$counter}"> | 49 | <input type="hidden" name="order_{$key}" value="{$counter}"> |
50 | </td> | 50 | </td> |
51 | <td>{$key}</td> | 51 | <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> |
52 | <td>{$value.description}</td> | 52 | <td><label for="{$key}">{$value.description}</label></td> |
53 | </tr> | 53 | </tr> |
54 | {/loop} | 54 | {/loop} |
55 | </tbody> | 55 | </tbody> |
@@ -73,9 +73,9 @@ | |||
73 | </tr> | 73 | </tr> |
74 | {loop="$disabledPlugins"} | 74 | {loop="$disabledPlugins"} |
75 | <tr> | 75 | <tr> |
76 | <td class="center"><input type="checkbox" name="{$key}"></td> | 76 | <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td> |
77 | <td>{$key}</td> | 77 | <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> |
78 | <td>{$value.description}</td> | 78 | <td><label for="{$key}">{$value.description}</label></td> |
79 | </tr> | 79 | </tr> |
80 | {/loop} | 80 | {/loop} |
81 | </table> | 81 | </table> |
@@ -99,7 +99,7 @@ | |||
99 | {loop="$enabledPlugins"} | 99 | {loop="$enabledPlugins"} |
100 | {if="count($value.parameters) > 0"} | 100 | {if="count($value.parameters) > 0"} |
101 | <div class="plugin_parameters"> | 101 | <div class="plugin_parameters"> |
102 | <h2>{$key}</h2> | 102 | <h2>{function="str_replace('_', ' ', $key)"}</h2> |
103 | {loop="$value.parameters"} | 103 | {loop="$value.parameters"} |
104 | <div class="plugin_parameter"> | 104 | <div class="plugin_parameter"> |
105 | <div class="float_label"> | 105 | <div class="float_label"> |
@@ -128,4 +128,4 @@ | |||
128 | 128 | ||
129 | <script src="inc/plugin_admin.js#"></script> | 129 | <script src="inc/plugin_admin.js#"></script> |
130 | </body> | 130 | </body> |
131 | </html> \ No newline at end of file | 131 | </html> |