]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/pluginsadmin.html
tpl: default/vintage: pluginsadmin: fix link to documentation
[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" class="pluginform-container">
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 class="center">{'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 class="center">{'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"|t}
120 <a href="doc/html/Community-&-Related-software/#third-party-plugins">{"in the documentation"|t}</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 class="center">{'No plugin enabled.'|t}</p>
139 {else}
140 {$nbParameters=0}
141 {loop="$enabledPlugins"}
142 {$nbParameters=$nbParameters+count($value.parameters)}
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 &middot; {$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}
164 {if="$nbParameters===0"}
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}
171 {/if}
172 </div>
173 </section>
174 </div>
175 </div>
176 </form>
177
178 {include="page.footer"}
179 <script src="js/pluginsadmin.min.js?v={$version_hash}"></script>
180
181 </body>
182 </html>