aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/pluginsadmin.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/default/pluginsadmin.html')
-rw-r--r--tpl/default/pluginsadmin.html236
1 files changed, 142 insertions, 94 deletions
diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html
index ead1734e..92af2eef 100644
--- a/tpl/default/pluginsadmin.html
+++ b/tpl/default/pluginsadmin.html
@@ -1,134 +1,182 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"}</head> 3<head>
4 {include="includes"}
5</head>
4<body> 6<body>
5<div id="pageheader"> 7{include="page.header"}
6 {include="page.header"}
7</div>
8 8
9<noscript> 9<noscript>
10 <div> 10 <div class="pure-g new-version-message pure-alert pure-alert-warning">
11 <ul class="errors"> 11 <div class="pure-u-2-24"></div>
12 <li>You need to enable Javascript to change plugin loading order.</li> 12 <div class="pure-u-20-24">
13 </ul> 13 {'You need to enable Javascript to change plugin loading order.'|t}
14 </div>
14 </div> 15 </div>
15 <div class="clear"></div> 16 <div class="clear"></div>
16</noscript> 17</noscript>
17 18
18<div id="pluginsadmin"> 19<form method="POST" action="?do=save_pluginadmin" name="pluginform" id="pluginform">
19 <form action="?do=save_pluginadmin" method="POST"> 20 <div class="pure-g">
20 <section id="enabled_plugins"> 21 <div class="pure-u-lg-1-8 pure-u-1-24"></div>
21 <h1>Enabled Plugins</h1> 22 <div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-complete">
23 <h2 class="window-title">{'Plugin administration'|t}</h2>
22 24
23 <div> 25 <section id="enabled_plugins">
24 {if="count($enabledPlugins)==0"} 26 <h3 class="window-subtitle">{'Enabled Plugins'|t}</h3>
25 <p>No plugin enabled.</p> 27
26 {else} 28 <div>
29 {if="count($enabledPlugins)==0"}
30 <p>{'No plugin enabled.'|t}</p>
31 {else}
27 <table id="plugin_table"> 32 <table id="plugin_table">
28 <thead> 33 <thead>
29 <tr> 34 <tr>
30 <th class="center">Disable</th> 35 <th class="center">{'Disable'|t}</th>
31 <th class="center">Order</th> 36 <th>{'Name'|t}</th>
32 <th>Name</th> 37 <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
33 <th>Description</th> 38 <th class="center">{'Order'|t}</th>
34 </tr> 39 </tr>
35 </thead> 40 </thead>
36 <tbody> 41 <tbody>
37 {loop="$enabledPlugins"} 42 {loop="$enabledPlugins"}
38 <tr data-line="{$key}" data-order="{$counter}"> 43 <tr data-line="{$key}" data-order="{$counter}" class="main-row">
39 <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td> 44 <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td>
40 <td class="center"> 45 <td class="center">
41 <a href="#" class="arrow" 46 <label for="{$key}"><strong>{function="str_replace('_', ' ', $key)"}</strong></label>
42 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));"> 47 </td>
43 48 <td><div class="pure-u-0 pure-u-lg-visible"><label for="{$key}">{$value.description}</label></div></td>
44 </a> 49 <td class="center">
45 <a href="#" class="arrow" 50 {if="count($enabledPlugins)>1"}
46 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));"> 51 <a href="#" class="order"
47 52 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));">
48 </a> 53
49 <input type="hidden" name="order_{$key}" value="{$counter}"> 54 </a>
50 </td> 55 <a href="#" class="order"
51 <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> 56 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));">
52 <td><label for="{$key}">{$value.description}</label></td> 57
53 </tr> 58 </a>
54 {/loop} 59 {/if}
60 <input type="hidden" name="order_{$key}" value="{$counter}">
61 </td>
62 </tr>
63 <tr data-line="{$key}" data-order="{$counter}" class="pure-u-lg-0 mobile-row">
64 <td colspan="4"><label for="{$key}">{$value.description}</label></td>
65 </tr>
66 {/loop}
55 </tbody> 67 </tbody>
68 <tfoot>
69 <tr>
70 <th class="center">{'Disable'|t}</th>
71 <th>{'Name'|t}</th>
72 <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
73 <th class="center">{'Order'|t}</th>
74 </tr>
75 </tfoot>
56 </table> 76 </table>
57 {/if} 77 {/if}
58 </div> 78 </div>
59 </section> 79 </section>
60 80
61 <section id="disabled_plugins"> 81 <section id="disabled_plugins">
62 <h1>Disabled Plugins</h1> 82 <h3 class="window-subtitle">{'Disabled Plugins'|t}</h3>
63 83
64 <div> 84 <div>
65 {if="count($disabledPlugins)==0"} 85 {if="count($disabledPlugins)==0"}
66 <p>No plugin disabled.</p> 86 <p>{'No plugin disabled.'|t}</p>
67 {else} 87 {else}
68 <table> 88 <table>
69 <tr> 89 <thead>
70 <th class="center">Enable</th>
71 <th>Name</th>
72 <th>Description</th>
73 </tr>
74 {loop="$disabledPlugins"}
75 <tr> 90 <tr>
76 <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td> 91 <th class="center">{'Enable'|t}</th>
77 <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> 92 <th>{'Name'|t}</th>
78 <td><label for="{$key}">{$value.description}</label></td> 93 <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
79 </tr> 94 </tr>
80 {/loop} 95 </thead>
96 <tbody>
97 {loop="$disabledPlugins"}
98 <tr class="main-row">
99 <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td>
100 <td class="center">
101 <label for="{$key}"><strong>{function="str_replace('_', ' ', $key)"}</strong></label>
102 </td>
103 <td><div class="pure-u-0 pure-u-lg-visible">
104 <label for="{$key}">{$value.description}</label>
105 </div></td>
106 </tr>
107 <tr class="pure-u-lg-0 mobile-row">
108 <td colspan="3"><label for="{$key}">{$value.description}</label></td>
109 </tr>
110 {/loop}
111 </tbody>
112 <tfoot>
113 <tr>
114 <th class="center">{'Enable'|t}</th>
115 <th>{'Name'|t}</th>
116 <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
117 </tr>
118 </tfoot>
81 </table> 119 </table>
82 {/if} 120 {/if}
83 </div> 121 </div>
122 </section>
84 123
124 <div class="center more">
125 More plugins available
126 <a href="doc/Community-&-Related-software.html#third-party-plugins">in the documentation</a>.
127 </div>
85 <div class="center"> 128 <div class="center">
86 <input type="submit" value="Save"/> 129 <input type="submit" value="{'Save'|t}" name="save">
87 </div> 130 </div>
88 </section> 131 </div>
89 </form> 132 </div>
90 133 <input type="hidden" name="token" value="{$token}">
91 <form action="?do=save_pluginadmin" method="POST"> 134</form>
92 <section id="plugin_parameters">
93 <h1>Enabled Plugin Parameters</h1>
94 135
95 <div> 136<form action="?do=save_pluginadmin" method="POST">
96 {if="count($enabledPlugins)==0"} 137 <div class="pure-g">
97 <p>No plugin enabled.</p> 138 <div class="pure-u-lg-1-8 pure-u-1-24"></div>
98 {else} 139 <div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-light">
99 {loop="$enabledPlugins"} 140 <h2 class="window-title">{'Plugin configuration'|t}</h2>
100 {if="count($value.parameters) > 0"} 141 <section id="plugin_parameters">
101 <div class="plugin_parameters"> 142 <div>
102 <h2>{function="str_replace('_', ' ', $key)"}</h2> 143 {if="count($enabledPlugins)==0"}
103 {loop="$value.parameters"} 144 <p>{'No plugin enabled.'|t}</p>
145 {else}
146 {loop="$enabledPlugins"}
147 {if="count($value.parameters) > 0"}
148 <div class="plugin_parameters">
149 <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
150 {loop="$value.parameters"}
104 <div class="plugin_parameter"> 151 <div class="plugin_parameter">
105 <div class="float_label"> 152 <p class="float_label">
106 <label for="{$key}"> 153 <label for="{$key}">
107 <code>{$key}</code><br> 154 <code>{$key}</code>
108 {if="isset($value.desc)"} 155 {if="isset($value.desc)"}
109 {$value.desc} 156 &middot; {$value.desc}
110 {/if} 157 {/if}
111 </label> 158 </label>
112 </div> 159 </p>
113 <div class="float_input"> 160 <div class="float_input">
114 <input name="{$key}" value="{$value.value}" id="{$key}"/> 161 <input name="{$key}" value="{$value.value}" id="{$key}" type="text" />
115 </div> 162 </div>
116 </div> 163 </div>
117 {/loop} 164 {/loop}
118 </div> 165 </div>
119 {/if} 166 {/if}
120 {/loop} 167 {/loop}
121 {/if} 168 {/if}
122 <div class="center"> 169 <div class="center">
123 <input type="submit" name="parameters_form" value="Save"/> 170 <input type="submit" name="parameters_form" value="{'Save'|t}"/>
171 </div>
124 </div> 172 </div>
125 </div> 173 </section>
126 </section> 174 </div>
127 </form> 175 </div>
176</form>
128 177
129</div>
130{include="page.footer"} 178{include="page.footer"}
131
132<script src="inc/plugin_admin.js#"></script> 179<script src="inc/plugin_admin.js#"></script>
180
133</body> 181</body>
134</html> 182</html>