aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src
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
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')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/confirminstall.html26
-rw-r--r--ratatoeskr/templates/src/systemtemplates/pluginhelp.html4
-rw-r--r--ratatoeskr/templates/src/systemtemplates/plugininstall.html18
-rw-r--r--ratatoeskr/templates/src/systemtemplates/pluginlist.html66
4 files changed, 114 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/confirminstall.html b/ratatoeskr/templates/src/systemtemplates/confirminstall.html
new file mode 100644
index 0000000..fdd15af
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/confirminstall.html
@@ -0,0 +1,26 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <h2><ste:escape>$name</ste:escape></h2>
+
+ <ste:escape>$description</ste:escape>
+
+ <h3><ste:get_translation for="plugin_src" /></h3>
+ <code><pre><ste:escape>$code</ste:escape></pre></code>
+
+ <ste:if>
+ $license
+ <ste:then>
+ <h3><ste:get_translation for="license" /></h3>
+ <code><pre><ste:escape>$license</ste:escape></pre></code>
+ </ste:then>
+ </ste:if>
+
+ <h3><ste:get_translation for="really_install" /></h3>
+ <div class="notice">
+ <ste:get_translation for="plugin_safety_warning" raw="1" />
+ </div>
+ <form action="$rel_path_to_root/backend/plugin/confirminstall/$plugin_id" method="POST">
+ <input type="submit" name="yes" value="<ste:get_translation for='yes' />" />
+ <input type="submit" name="no" value="<ste:get_translation for='no' />" />
+ </form>
+</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/pluginhelp.html b/ratatoeskr/templates/src/systemtemplates/pluginhelp.html
new file mode 100644
index 0000000..c1e748a
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/pluginhelp.html
@@ -0,0 +1,4 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ $help
+</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/plugininstall.html b/ratatoeskr/templates/src/systemtemplates/plugininstall.html
new file mode 100644
index 0000000..039feef
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/plugininstall.html
@@ -0,0 +1,18 @@
+<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>
+
+ <h2><ste:get_translation for="install_from_package" /></h2>
+ <form action="$rel_path_to_root/backend/plugin/install" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
+ <input type="file" name="pluginpackage" /> <input type="submit" name="installpackage" />
+ </form>
+</ste:block>
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>