aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/pluginlist.html
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-12-23 01:43:53 +0100
committerKevin Chabowski <kevin@kch42.de>2011-12-23 01:43:53 +0100
commitdf0658f7e10d2bf87460195f792398d16eee811e (patch)
tree1f7720ecc6c3ca5e94e84022766121f6f677c88f /ratatoeskr/templates/src/systemtemplates/pluginlist.html
parent7d6a5eca4e0a38ae615634542859d29ab79c94e8 (diff)
downloadratatoeskr-cms-df0658f7e10d2bf87460195f792398d16eee811e.tar.gz
ratatoeskr-cms-df0658f7e10d2bf87460195f792398d16eee811e.tar.bz2
ratatoeskr-cms-df0658f7e10d2bf87460195f792398d16eee811e.zip
Added plugin management to bakend and fixed db models.
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates/pluginlist.html')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/pluginlist.html66
1 files changed, 66 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/pluginlist.html b/ratatoeskr/templates/src/systemtemplates/pluginlist.html
new file mode 100644
index 0000000..ea01335
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/pluginlist.html
@@ -0,0 +1,66 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:if>$success
+ <ste:then>
+ <div class="success"><ste:escape>$success</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+
+ <form action="$rel_path_to_root/backend/plugin/list" method="POST">
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th><ste:get_translation for="plugin_name" /></th>
+ <th><ste:get_translation for="plugin_version" /></th>
+ <th><ste:get_translation for="plugin_isactive" /></th>
+ <th><ste:get_translation for="plugin_description" /></th>
+ <th><ste:get_translation for="plugin_author" /></th>
+ <th><ste:get_translation for="plugin_web" /></th>
+ <th><ste:get_translation for="plugin_help" /></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:set var="plugins_n"><ste:arraylen array="plugins" /></ste:set>
+ <ste:if>
+ ~{$plugins_n|gt|0}
+ <ste:then>
+ <ste:foreach array="plugins" value="p">
+ <tr>
+ <td><input type="checkbox" name="plugins_multiselect[]" value="$p[id]" /></td>
+ <td><ste:escape>$p[name]</ste:escape></td>
+ <td><ste:escape>$p[versiontext]</ste:escape></td>
+ <td>?{$p[active]|<strong><ste:get_translation for="yes" />|<ste:get_translation for="no" />}</td>
+ <td><ste:escape>$p[description]</ste:escape></td>
+ <td><ste:escape>$p[author]</ste:escape></td>
+ <td>?{$p[web]|<a href="<ste:escape>$p[web]</ste:escape>"><ste:escape>$p[web]</ste:escape></a>|}</td>
+ <td>?{$p[help]|<a href="$rel_path_to_root/backend/plugin/help/$p[id]"><ste:get_translation for="plugin_help" /></a>|}</td>
+ </tr>
+ </ste:foreach>
+ </ste:then>
+ <ste:else>
+ <tr><td colspan="8" style="text-align: center;"><em><ste:get_translation for="no_plugins" /></em></td></tr>
+ </ste:else>
+ </ste:if>
+ </tbody>
+ </table>
+ <div>
+ <input type="submit" name="delete" value="<ste:get_translation for='delete' />" />
+ <select name="really_delete">
+ <option value="no" selected="selected"><ste:get_translation for="no" /></option>
+ <option value="yes"><ste:get_translation for="yes" /></option>
+ </select>
+ |
+ <input type="submit" name="update" value="<ste:get_translation for='plugin_update' />" />
+ |
+ <input type="submit" name="activate" value="<ste:get_translation for='plugin_activate' />" />
+ |
+ <input type="submit" name="deactivate" value="<ste:get_translation for='plugin_deactivate' />" />
+ </div>
+ </form>
+</ste:block>