]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/pluginsadmin.html
5cc1802f77dff26790ced7d1c77ce52c176c7438
[github/shaarli/Shaarli.git] / tpl / default / pluginsadmin.html
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"}
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>{'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"}
51 <a href="#" class="order order-up">▲</a>
52 <a href="#" class="order order-down">▼</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"}
80 <p>{'No plugin disabled.'|t}</p>
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">
119 More plugins available
120 <a href="doc/Community-&-Related-software.html#third-party-plugins">in the documentation</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"}
138 <p>{'No plugin enabled.'|t}</p>
139 {else}
140 {loop="$enabledPlugins"}
141 {if="count($value.parameters) > 0"}
142 <div class="plugin_parameters">
143 <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
144 {loop="$value.parameters"}
145 <div class="plugin_parameter">
146 <p class="float_label">
147 <label for="{$key}">
148 <code>{$key}</code>
149 {if="isset($value.desc)"}
150 &middot; {$value.desc}
151 {/if}
152 </label>
153 </p>
154 <div class="float_input">
155 <input name="{$key}" value="{$value.value}" id="{$key}" type="text" />
156 </div>
157 </div>
158 {/loop}
159 </div>
160 {/if}
161 {/loop}
162 {/if}
163 <div class="center">
164 <input type="submit" name="parameters_form" value="{'Save'|t}"/>
165 </div>
166 </div>
167 </section>
168 </div>
169 </div>
170 </form>
171
172 {include="page.footer"}
173 <script src="inc/plugin_admin.js#"></script>
174
175 </body>
176 </html>