]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/pluginsadmin.html
Minor adjustments
[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">
4daf556b 23 <h2 class="window-title">{'Plugin administration'|t}</h2>
9d2fc4fa
A
24
25 <section id="enabled_plugins">
4daf556b 26 <h3 class="window-subtitle">{'Enabled Plugins'|t}</h3>
9d2fc4fa
A
27
28 <div>
29 {if="count($enabledPlugins)==0"}
30 <p>{'No plugin enabled.'|t}</p>
31 {else}
32 <table id="plugin_table">
33 <thead>
be0404d8
A
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>
9d2fc4fa
A
40 </thead>
41 <tbody>
be0404d8
A
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"
52 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));">
53
54 </a>
55 <a href="#" class="order"
56 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));">
57
58 </a>
59 {/if}
60 <input type="hidden" name="order_{$key}" value="{$counter}">
61 </td>
62 </tr>
63 <tr class="pure-u-lg-0 mobile-row">
64 <td colspan="4"><label for="{$key}">{$value.description}</label></td>
65 </tr>
66 {/loop}
9d2fc4fa 67 </tbody>
be0404d8
A
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>
9d2fc4fa
A
76 </table>
77 {/if}
78 </div>
79 </section>
80
81 <section id="disabled_plugins">
4daf556b 82 <h3 class="window-subtitle">{'Disabled Plugins'|t}</h3>
9d2fc4fa
A
83
84 <div>
85 {if="count($disabledPlugins)==0"}
86 <p>{'No plugin disabled.'|t}</p>
87 {else}
88 <table>
be0404d8
A
89 <thead>
90 <tr>
91 <th class="center">{'Enable'|t}</th>
92 <th>{'Name'|t}</th>
93 <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
94 </tr>
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>
9d2fc4fa
A
119 </table>
120 {/if}
121 </div>
9d2fc4fa
A
122 </section>
123
8b6f0b50
A
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>
9d2fc4fa
A
128 <div class="center">
129 <input type="submit" value="{'Save'|t}" name="save">
130 </div>
131 </div>
132 </div>
133 <input type="hidden" name="token" value="{$token}">
134</form>
135
136<form action="?do=save_pluginadmin" method="POST">
137 <div class="pure-g">
138 <div class="pure-u-lg-1-6 pure-u-1-8"></div>
139 <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-light">
8fd43488 140 <h2 class="window-title">{'Plugin configuration'|t}</h2>
9d2fc4fa
A
141 <section id="plugin_parameters">
142 <div>
143 {if="count($enabledPlugins)==0"}
144 <p>{'No plugin enabled.'|t}</p>
145 {else}
146 {loop="$enabledPlugins"}
147 {if="count($value.parameters) > 0"}
148 <div class="plugin_parameters">
4daf556b 149 <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
9d2fc4fa
A
150 {loop="$value.parameters"}
151 <div class="plugin_parameter">
152 <div class="float_label">
153 <label for="{$key}">
154 <code>{$key}</code>
be0404d8 155 {if="isset($value.desc)"}
8fd43488 156 &middot; {$value.desc}
be0404d8 157 {/if}
9d2fc4fa
A
158 </label>
159 </div>
160 <div class="float_input">
8fd43488 161 <input name="{$key}" value="{$value.value}" id="{$key}" type="text" />
9d2fc4fa
A
162 </div>
163 </div>
164 {/loop}
165 </div>
166 {/if}
167 {/loop}
168 {/if}
169 <div class="center">
170 <input type="submit" name="parameters_form" value="{'Save'|t}"/>
171 </div>
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>