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