]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/pluginsadmin.html
plugin admin first version
[github/shaarli/Shaarli.git] / tpl / default / pluginsadmin.html
CommitLineData
9d2fc4fa
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-6 pure-u-1-8"></div>
22 <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-complete">
23 <h2>{'Plugin administration'|t}</h2>
24
25 <section id="enabled_plugins">
26 <h3>{'Enabled Plugins'|t}</h3>
27
28 <div>
29 {if="count($enabledPlugins)==0"}
30 <p>{'No plugin enabled.'|t}</p>
31 {else}
32 <table id="plugin_table">
33 <thead>
34 <tr>
35 <th class="center">{'Disable'|t}</th>
36 <th class="center">{'Order'|t}</th>
37 <th>{'Name'|t}</th>
38 <th>{'Description'|t}</th>
39 </tr>
40 </thead>
41 <tbody>
42 {loop="$enabledPlugins"}
43 <tr data-line="{$key}" data-order="{$counter}">
44 <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td>
45 <td class="center">
46 {if="count($enabledPlugins)>1"}
47 <a href="#" class="order"
48 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));">
49
50 </a>
51 <a href="#" class="order"
52 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));">
53
54 </a>
55 {/if}
56 <input type="hidden" name="order_{$key}" value="{$counter}">
57 </td>
58 <td class="center"><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td>
59 <td><label for="{$key}">{$value.description}</label></td>
60 </tr>
61 {/loop}
62 </tbody>
63 </table>
64 {/if}
65 </div>
66 </section>
67
68 <section id="disabled_plugins">
69 <h3>{'Disabled Plugins'|t}</h3>
70
71 <div>
72 {if="count($disabledPlugins)==0"}
73 <p>{'No plugin disabled.'|t}</p>
74 {else}
75 <table>
76 <tr>
77 <th class="center">{'Enable'|t}</th>
78 <th>{'Name'|t}</th>
79 <th>{'Description'|t}</th>
80 </tr>
81 {loop="$disabledPlugins"}
82 <tr>
83 <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td>
84 <td class="center"><label for="{$key}">{function="str_replace('_', ' ', $key)"}</label></td>
85 <td><label for="{$key}">{$value.description}</label></td>
86 </tr>
87 {/loop}
88 </table>
89 {/if}
90 </div>
91
92 </section>
93
94 <div class="center">
95 <input type="submit" value="{'Save'|t}" name="save">
96 </div>
97 </div>
98 </div>
99 <input type="hidden" name="token" value="{$token}">
100</form>
101
102<form action="?do=save_pluginadmin" method="POST">
103 <div class="pure-g">
104 <div class="pure-u-lg-1-6 pure-u-1-8"></div>
105 <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-light">
106 <h2>{'Plugin configuration'|t}</h2>
107 <section id="plugin_parameters">
108 <div>
109 {if="count($enabledPlugins)==0"}
110 <p>{'No plugin enabled.'|t}</p>
111 {else}
112 {loop="$enabledPlugins"}
113 {if="count($value.parameters) > 0"}
114 <div class="plugin_parameters">
115 <h3>{function="str_replace('_', ' ', $key)"}</h3>
116 {loop="$value.parameters"}
117 <div class="plugin_parameter">
118 <div class="float_label">
119 <label for="{$key}">
120 <code>{$key}</code>
121 </label>
122 </div>
123 <div class="float_input">
124 <input name="{$key}" value="{$value}" id="{$key}" type="text" />
125 </div>
126 </div>
127 {/loop}
128 </div>
129 {/if}
130 {/loop}
131 {/if}
132 <div class="center">
133 <input type="submit" name="parameters_form" value="{'Save'|t}"/>
134 </div>
135 </div>
136 </section>
137 </div>
138 </div>
139</form>
140
141{include="page.footer"}
142<script src="inc/plugin_admin.js#"></script>
143
144</body>
145</html>