summaryrefslogtreecommitdiffstats
path: root/templates/admin/plugin_config.html
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-03-24 16:59:41 -0400
committerSimo Sorce <simo@redhat.com>2014-03-26 15:25:56 -0400
commita5be918364744f92d73aa4b6589f3b9b33235d6d (patch)
tree366f41498c6f6c82f98d4deceed4315cf3973640 /templates/admin/plugin_config.html
parent667901638f082e05b4ac61a14f4ddc07ec987742 (diff)
downloadipsilon-a5be918364744f92d73aa4b6589f3b9b33235d6d.tar.gz
ipsilon-a5be918364744f92d73aa4b6589f3b9b33235d6d.tar.xz
ipsilon-a5be918364744f92d73aa4b6589f3b9b33235d6d.zip
Move login plugin configuration to its own module
move also the template, in preparation for handling other configuration data in the main page. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/admin/plugin_config.html')
-rw-r--r--templates/admin/plugin_config.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html
new file mode 100644
index 0000000..7c143af
--- /dev/null
+++ b/templates/admin/plugin_config.html
@@ -0,0 +1,26 @@
+{% 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">
+
+ {% for o in options %}
+ <div class="form-group">
+ <label for="{{ o }}">{{ o }}:</label>
+ <input type="text" class="form-control" name="{{ o }}" value="{{ options[o][2] }}">
+ </div>
+ <span class="help-block">{{ options[o][0] }}</span>
+ {% endfor %}
+
+ <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>
+ </form>
+ </div>
+{% endblock %}