From 14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 2 Sep 2014 17:41:07 -0400 Subject: Add Info providers Admin pages Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- templates/admin/info.html | 31 +++++++++++++++++++++++++++++++ templates/admin/info_order.html | 25 +++++++++++++++++++++++++ templates/admin/plugin_config.html | 2 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 templates/admin/info.html create mode 100644 templates/admin/info_order.html (limited to 'templates/admin') diff --git a/templates/admin/info.html b/templates/admin/info.html new file mode 100644 index 0000000..d51231f --- /dev/null +++ b/templates/admin/info.html @@ -0,0 +1,31 @@ +{% extends "master-admin.html" %} +{% block main %} +{% if user.is_admin %} +

Info plugins

+ {% if message %} +
+

{{ message }}

+
+ {% endif %} + + {% for p in available %} +
+
{{ p }}
+
+ {% if p in enabled %} + Disable + Configure + {% else %} + Enable + {% endif %} +
+
+ {% endfor %} + +

Plugins order

+
{{ ', '.join(enabled) }}
+
+ configure +
+{% endif %} +{% endblock %} diff --git a/templates/admin/info_order.html b/templates/admin/info_order.html new file mode 100644 index 0000000..5d929be --- /dev/null +++ b/templates/admin/info_order.html @@ -0,0 +1,25 @@ +{% extends "master-admin.html" %} +{% block main %} +

{{ title }}

+ {% if message %} +
+

{{ message }}

+
+ {% endif %} +
+
+ +
+ + +
+ Plugins order + + + Back +
+
+{% endblock %} + diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html index 1f75182..d95bf75 100644 --- a/templates/admin/plugin_config.html +++ b/templates/admin/plugin_config.html @@ -20,7 +20,7 @@ - Back + Back {% endblock %} -- cgit