]>
Commit | Line | Data |
---|---|---|
dea0ba28 A |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head>{include="includes"}</head> | |
4 | <body> | |
5 | <div id="pageheader"> | |
6 | {include="page.header"} | |
7 | </div> | |
8 | ||
9 | <noscript> | |
10 | <div> | |
11 | <ul class="errors"> | |
12 | <li>You need to enable Javascript to change plugin loading order.</li> | |
13 | </ul> | |
14 | </div> | |
15 | <div class="clear"></div> | |
16 | </noscript> | |
17 | ||
18 | <div id="pluginsadmin"> | |
19 | <form action="?do=save_pluginadmin" method="POST"> | |
20 | <section id="enabled_plugins"> | |
21 | <h1>Enabled Plugins</h1> | |
22 | ||
23 | <div> | |
24 | {if="count($enabledPlugins)==0"} | |
25 | <p>No plugin enabled.</p> | |
26 | {else} | |
27 | <table id="plugin_table"> | |
28 | <thead> | |
29 | <tr> | |
30 | <th class="center">Disable</th> | |
31 | <th class="center">Order</th> | |
32 | <th>Name</th> | |
33 | <th>Description</th> | |
34 | </tr> | |
35 | </thead> | |
36 | <tbody> | |
37 | {loop="$enabledPlugins"} | |
38 | <tr data-line="{$key}" data-order="{$counter}"> | |
dc71701c | 39 | <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td> |
dea0ba28 | 40 | <td class="center"> |
3d8f5cf8 | 41 | <a href="#" class="arrow" |
dea0ba28 A |
42 | onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));"> |
43 | ▲ | |
44 | </a> | |
3d8f5cf8 | 45 | <a href="#" class="arrow" |
dea0ba28 A |
46 | onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));"> |
47 | ▼ | |
48 | </a> | |
49 | <input type="hidden" name="order_{$key}" value="{$counter}"> | |
50 | </td> | |
dc71701c ND |
51 | <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> |
52 | <td><label for="{$key}">{$value.description}</label></td> | |
dea0ba28 A |
53 | </tr> |
54 | {/loop} | |
55 | </tbody> | |
56 | </table> | |
57 | {/if} | |
58 | </div> | |
59 | </section> | |
60 | ||
61 | <section id="disabled_plugins"> | |
62 | <h1>Disabled Plugins</h1> | |
63 | ||
64 | <div> | |
65 | {if="count($disabledPlugins)==0"} | |
66 | <p>No plugin disabled.</p> | |
67 | {else} | |
68 | <table> | |
69 | <tr> | |
70 | <th class="center">Enable</th> | |
71 | <th>Name</th> | |
72 | <th>Description</th> | |
73 | </tr> | |
74 | {loop="$disabledPlugins"} | |
75 | <tr> | |
dc71701c ND |
76 | <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td> |
77 | <td><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td> | |
78 | <td><label for="{$key}">{$value.description}</label></td> | |
dea0ba28 A |
79 | </tr> |
80 | {/loop} | |
81 | </table> | |
82 | {/if} | |
83 | </div> | |
84 | ||
85 | <div class="center"> | |
86 | <input type="submit" value="Save"/> | |
87 | </div> | |
88 | </section> | |
89 | </form> | |
90 | ||
91 | <form action="?do=save_pluginadmin" method="POST"> | |
92 | <section id="plugin_parameters"> | |
93 | <h1>Enabled Plugin Parameters</h1> | |
94 | ||
95 | <div> | |
96 | {if="count($enabledPlugins)==0"} | |
97 | <p>No plugin enabled.</p> | |
98 | {else} | |
99 | {loop="$enabledPlugins"} | |
100 | {if="count($value.parameters) > 0"} | |
101 | <div class="plugin_parameters"> | |
dc71701c | 102 | <h2>{function="str_replace('_', ' ', $key)"}</h2> |
dea0ba28 A |
103 | {loop="$value.parameters"} |
104 | <div class="plugin_parameter"> | |
105 | <div class="float_label"> | |
106 | <label for="{$key}"> | |
1442afe3 | 107 | <code>{$key}</code><br> |
e3de09b4 A |
108 | {if="isset($value.desc)"} |
109 | {$value.desc} | |
110 | {/if} | |
dea0ba28 A |
111 | </label> |
112 | </div> | |
113 | <div class="float_input"> | |
1442afe3 | 114 | <input name="{$key}" value="{$value.value}" id="{$key}"/> |
dea0ba28 A |
115 | </div> |
116 | </div> | |
117 | {/loop} | |
118 | </div> | |
119 | {/if} | |
120 | {/loop} | |
121 | {/if} | |
122 | <div class="center"> | |
123 | <input type="submit" name="parameters_form" value="Save"/> | |
124 | </div> | |
125 | </div> | |
126 | </section> | |
127 | </form> | |
128 | ||
129 | </div> | |
130 | {include="page.footer"} | |
131 | ||
132 | <script src="inc/plugin_admin.js#"></script> | |
133 | </body> | |
dc71701c | 134 | </html> |