diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-15 00:17:53 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-10-27 16:31:23 +0100 |
commit | fb1c34e7aeac67a75c29a132ded87edeb557cdaf (patch) | |
tree | f0e9d2fc9d4fe9a40dd83a1eb821f9764f9dbcf9 /templates/admin/info.html | |
parent | 8e9018c40be3c2810dc7272bfae0f07e5841c32d (diff) | |
download | ipsilon-fb1c34e7aeac67a75c29a132ded87edeb557cdaf.tar.gz ipsilon-fb1c34e7aeac67a75c29a132ded87edeb557cdaf.tar.xz ipsilon-fb1c34e7aeac67a75c29a132ded87edeb557cdaf.zip |
Improve UI for enabling/disabling plugins config
Use the same templates for both info and login plugins
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'templates/admin/info.html')
-rw-r--r-- | templates/admin/info.html | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/templates/admin/info.html b/templates/admin/info.html deleted file mode 100644 index d51231f..0000000 --- a/templates/admin/info.html +++ /dev/null @@ -1,31 +0,0 @@ -{% 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 %} |