aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/pluginsadmin.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-14 15:52:17 +0100
committerArthurHoaro <arthur@hoa.ro>2017-02-27 20:01:54 +0100
commit402b03464812aaec76bc841ca7dacb775baf1e03 (patch)
tree5f5ce030a71ed1ac327f60911cb22f0ca87d21cd /tpl/default/pluginsadmin.html
parent009ce9358168cc06c76fc2f4162829e552e633a3 (diff)
downloadShaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.gz
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.zst
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.zip
Introduce the new default Shaarli template
Diffstat (limited to 'tpl/default/pluginsadmin.html')
-rw-r--r--tpl/default/pluginsadmin.html182
1 files changed, 182 insertions, 0 deletions
diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html
new file mode 100644
index 00000000..92af2eef
--- /dev/null
+++ b/tpl/default/pluginsadmin.html
@@ -0,0 +1,182 @@
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"
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 data-line="{$key}" data-order="{$counter}" class="pure-u-lg-0 mobile-row">
64 <td colspan="4"><label for="{$key}">{$value.description}</label></td>
65 </tr>
66 {/loop}
67 </tbody>
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>
76 </table>
77 {/if}
78 </div>
79 </section>
80
81 <section id="disabled_plugins">
82 <h3 class="window-subtitle">{'Disabled Plugins'|t}</h3>
83
84 <div>
85 {if="count($disabledPlugins)==0"}
86 <p>{'No plugin disabled.'|t}</p>
87 {else}
88 <table>
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>
119 </table>
120 {/if}
121 </div>
122 </section>
123
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>
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-8 pure-u-1-24"></div>
139 <div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-light">
140 <h2 class="window-title">{'Plugin configuration'|t}</h2>
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">
149 <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
150 {loop="$value.parameters"}
151 <div class="plugin_parameter">
152 <p class="float_label">
153 <label for="{$key}">
154 <code>{$key}</code>
155 {if="isset($value.desc)"}
156 &middot; {$value.desc}
157 {/if}
158 </label>
159 </p>
160 <div class="float_input">
161 <input name="{$key}" value="{$value.value}" id="{$key}" type="text" />
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>