summaryrefslogtreecommitdiffstats
path: root/templates/admin/index.html
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-02-11 17:36:37 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-02-11 18:02:40 +0100
commit7dfa97b20d82292f45b1b955d14d2247e2bc4747 (patch)
tree906d5ef1fabc8aebd01497c833db9a25b6cb15b8 /templates/admin/index.html
parent3ad45cd7b225a44c935f57b7c4e4ad8c4d2cabea (diff)
downloadipsilon-7dfa97b20d82292f45b1b955d14d2247e2bc4747.tar.gz
ipsilon-7dfa97b20d82292f45b1b955d14d2247e2bc4747.tar.xz
ipsilon-7dfa97b20d82292f45b1b955d14d2247e2bc4747.zip
Apply patternfly to administration pagesui
Signed-off-by: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r--templates/admin/index.html58
1 files changed, 20 insertions, 38 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 5af8497..c22d249 100644
--- a/templates/admin/index.html
+++ b/templates/admin/index.html
@@ -1,41 +1,23 @@
-<!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 %}
+{% extends "master-admin.html" %}
+{% block main %}
+{% if user.is_admin %}
+ <h2>Login plugins</h2>
+
+ {% 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/login/{{ p }}/disable">Disable</a>
+ <a class="btn btn-default" href="{{ basepath }}/admin/login/{{ p }}">Configure</a>
+ {% else %}
+ <a class="btn btn-default" href="{{ basepath }}/admin/login/{{ p }}/enable">Enable</a>
+ {% endif %}
</div>
- <div id="home">
- <p><a href="{{ basepath }}/">Home</a></p>
</div>
- </div>
-</body>
-</html>
+ {% endfor %}
+ <h3>Plugins order</h3>
+ <p>[list here and form button to change?]</p>
+{% endif %}
+{% endblock %} \ No newline at end of file