diff options
author | Simo Sorce <simo@redhat.com> | 2014-01-24 14:20:42 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-01-24 17:32:21 -0500 |
commit | cd30057eec4c772171c5558d9fac2c1f73bc12dd (patch) | |
tree | f0230d764658ab98c26d71f3ce7329cfea962829 /templates | |
parent | 1e3d8e4cc15dcbb0de5898e202089670f1659af3 (diff) | |
download | ipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.tar.gz ipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.tar.xz ipsilon-cd30057eec4c772171c5558d9fac2c1f73bc12dd.zip |
Add infrastructure to configure server
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/index.html | 41 | ||||
-rw-r--r-- | templates/admin/login_plugin.html | 42 | ||||
-rw-r--r-- | templates/index.html | 2 |
3 files changed, 84 insertions, 1 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> + diff --git a/templates/index.html b/templates/index.html index c983af2..1e21948 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,7 +13,7 @@ </div> <div id="admin"> {% if user.is_admin %} - <a href="admin">admin</a> + <a href="{{ basepath }}/admin">admin</a> {% endif %} </div> <div id="welcome"> |