Group CRUD and Management in Admin Dashboard.

Add support for CRUD on Group for admin users. It also includes
the user management capability for the group.

Keystone revokes the token when a user is added or removed from the
group. If the logon user is added/removed from the group, the user
will be redirected to the login page.

This feature is only exposed if the user explicitly set horizon
for keystone V3.

Implements blueprint admin-group-crud

Change-Id: I1b5456af80bcc35e9d16ac6ba6792e82704e76fd
This commit is contained in:
Lin Hua Cheng
2013-05-23 23:09:34 -07:00
parent 65525a15f5
commit fa32d84b0e
23 changed files with 915 additions and 3 deletions

View File

@@ -20,3 +20,5 @@
<div class="modal-footer">{% block modal-footer %}{% endblock %}</div>
</form>
</div>
{% block modal-js %}
{% endblock %}

View File

@@ -0,0 +1,41 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block modal-body %}
<input type="hidden" id="hidden_redirect_back_to_home" name="redirect" value="{{redirect}}"/>
{% endblock %}
{% block modal-js %}
<script type="text/javascript">
<!--
/* ensure the value of the action buttons also gets submitted */
$(':button[name="action"]').click(function () {
value = $(this).attr("value");
$('<input>').attr({
type: 'hidden',
name: 'action',
value: value,
}).appendTo('form');
var redirect = $('#hidden_redirect_back_to_home').val();
$('<input>').attr({
type: 'hidden',
name: 'redirect',
value: redirect,
}).appendTo('form');
return true;
});
/* add the correct ajax class for table footer links */
$("tfoot a").addClass("ajax-modal");
/* as you navigate around the more pages, they stack on top of each other
make sure this stack gets cleaned up so there is only on*/
hidden_modals = $("#modal_wrapper .modal.hide:not(:last-child)");
hidden_modals.detach();
//-->
</script>
{% endblock %}