summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-09-02 17:41:07 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-09-24 20:29:49 +0200
commit14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb (patch)
tree02bbdc36d32cbe550a2c1bc737fcb37d41a298b1 /templates
parentbf4a27ab704581b68ddc24c74d92fc724ea0f124 (diff)
downloadipsilon-14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb.tar.gz
ipsilon-14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb.tar.xz
ipsilon-14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb.zip
Add Info providers Admin pages
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/info.html31
-rw-r--r--templates/admin/info_order.html25
-rw-r--r--templates/admin/plugin_config.html2
3 files changed, 57 insertions, 1 deletions
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 %}
+ <h2>Info plugins</h2>
+ {% if message %}
+ <div class="alert alert-{{message_type}}">
+ <p>{{ message }}</p>
+ </div>
+ {% endif %}
+
+ {% for p in available %}
+ <div class="row">
+ <div class="col-md-3 col-sm-3 col-xs-6">{{ p }}</div>
+ <div class="col-md-3 col-sm-3 col-xs-6">
+ {% if p in enabled %}
+ <a class="btn btn-default" href="{{ basepath }}/admin/info/disable/{{ p }}">Disable</a>
+ <a class="btn btn-default" href="{{ basepath }}/admin/info/{{ p }}">Configure</a>
+ {% else %}
+ <a class="btn btn-default" href="{{ basepath }}/admin/info/enable/{{ p }}">Enable</a>
+ {% endif %}
+ </div>
+ </div>
+ {% endfor %}
+
+ <h3>Plugins order</h3>
+ <div class="col-md-3 col-sm-3 col-xs-6">{{ ', '.join(enabled) }}</div>
+ <div class="col-md-3 col-sm-3 col-xs-6">
+ <a class="btn btn-default" href="{{ basepath }}/admin/info/order">configure</a>
+ </div>
+{% 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 %}
+ <h2>{{ title }}</h2>
+ {% if message %}
+ <div class="alert alert-{{message_type}}">
+ <p>{{ message }}</p>
+ </div>
+ {% endif %}
+ <div id="options">
+ <form role="form" id="{{ name }}" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
+
+ <div class="form-group">
+ <label for="order">Info plugins order:</label>
+ <input type="text" class="form-control" name="order" value="{{ ', '.join(options) }}" />
+ </div>
+ <span class="help-block">Plugins order</span>
+
+ <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
+ Save
+ </button>
+ <a href="{{ basepath }}/admin/info" class="btn btn-default" title="Back">Back</a>
+ </form>
+ </div>
+{% 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 @@
<button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
Save
</button>
- <a href="{{ basepath }}/admin/login" class="btn btn-default" title="Back">Back</a>
+ <a href="{{ back }}" class="btn btn-default" title="Back">Back</a>
</form>
</div>
{% endblock %}