summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-01-24 14:20:42 -0500
committerSimo Sorce <simo@redhat.com>2014-01-24 17:32:21 -0500
commitcd30057eec4c772171c5558d9fac2c1f73bc12dd (patch)
treef0230d764658ab98c26d71f3ce7329cfea962829 /templates/admin
parent1e3d8e4cc15dcbb0de5898e202089670f1659af3 (diff)
downloadipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.zip
ipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.tar.gz
ipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.tar.xz
Add infrastructure to configure server
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/index.html41
-rw-r--r--templates/admin/login_plugin.html42
2 files changed, 83 insertions, 0 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
new file mode 100644
index 0000000..5af8497
--- /dev/null
+++ b/templates/admin/index.html
@@ -0,0 +1,41 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8"></meta>
+ <title>{{ title }}</title>
+ <link href="{{ basepath }}/ui/ipsilon.css" type="text/css" rel="stylesheet"></link>
+ <link href="{{ basepath }}/ui/favicon.ico" type="image/ico" rel="icon"></link>
+</head>
+<body>
+ <div id="container">
+ <div id="logo">
+ <p><a href="{{ basepath }}">Ipsilon</a></p>
+ </div>
+ <div id="logout">
+ <p><a href="{{ basepath }}/logout">Log Out</a></p>
+ </div>
+ <div id="options">
+ {% if user.is_admin %}
+ <p>Login plugins:</p>
+ <ul>
+ {% for p in available %}
+ <li> {{ p }} -
+ {% if p in enabled %}
+ <a href="{{ basepath }}/admin/login/{{ p }}/disable">Disable</a> -
+ <a href="{{ basepath }}/admin/login/{{ p }}">Configure</a>
+ {% else %}
+ <a href="{{ basepath }}/admin/login/{{ p }}/enable">Enable</a>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ <p>Plugins order: [list here and form button to change?]</p>
+ {% endif %}
+ </div>
+ <div id="home">
+ <p><a href="{{ basepath }}/">Home</a></p>
+ </div>
+ </div>
+</body>
+</html>
+
diff --git a/templates/admin/login_plugin.html b/templates/admin/login_plugin.html
new file mode 100644
index 0000000..43adac6
--- /dev/null
+++ b/templates/admin/login_plugin.html
@@ -0,0 +1,42 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8"></meta>
+ <title>{{ title }}</title>
+ <link href="{{ basepath }}/ui/ipsilon.css" type="text/css" rel="stylesheet"></link>
+ <link href="{{ basepath }}/ui/favicon.ico" type="image/ico" rel="icon"></link>
+</head>
+<body>
+ <div id="container">
+ <div id="logo">
+ <p><a href="{{ basepath }}">Ipsilon</a></p>
+ </div>
+ <div id="logout">
+ <p><a href="{{ basepath }}/logout">Log Out</a></p>
+ </div>
+ <div id="message">
+ <p>{{ message }}</p>
+ </div>
+ <div id="options">
+ <form id="{{ name }}" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
+ <ul>
+ {% for o in options %}
+ <li>{{ o }}:
+ <p>{{ options[o][0] }}</p>
+ <input type="text" name="{{ o }}" value="{{ options[o][2] }}">
+ </li>
+ {% endfor %}
+ </ul>
+ <input id="submit" name="submit" type="submit" value="Submit">
+ </form>
+ </div>
+ <div id="home">
+ <p>
+ <a href="{{ basepath }}/admin">Admin</a> -
+ <a href="{{ basepath }}/">Home</a>
+ </p>
+ </div>
+ </div>
+</body>
+</html>
+