diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/index.html | 7 | ||||
-rw-r--r-- | templates/admin/login_order.html | 25 |
2 files changed, 30 insertions, 2 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html index c22d249..1957a7f 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -18,6 +18,9 @@ {% endfor %} <h3>Plugins order</h3> - <p>[list here and form button to change?]</p> + <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/login/order">configure</a> + </div> {% endif %} -{% endblock %}
\ No newline at end of file +{% endblock %} diff --git a/templates/admin/login_order.html b/templates/admin/login_order.html new file mode 100644 index 0000000..c78fe55 --- /dev/null +++ b/templates/admin/login_order.html @@ -0,0 +1,25 @@ +{% 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"> + + <div class="form-group"> + <label for="order">Login plugins order:</label> + <input type="text" class="form-control" name="order" value="{{ ', '.join(options) }}" /> + </div> + <span class="help-block">Plugins order</span> + + <button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit"> + Save + </button> + <a href="{{ basepath }}/admin" class="btn btn-default" title="Back">Back</a> + </form> + </div> +{% endblock %} + |