Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tenant user administration upgrades.
* Converts tenant users to datatables. Fixes bug 922351. * Updates role-based adding/removing of users for Keystone master. Fixes bug 922391. * Corrects role addition during user creation. Fixes bug 922393. * Adds the ability to choose the role with which the user should be added to the tenant. Depends on client updates in https://review.openstack.org/#change,3527 Change-Id: I4d85e41a278534d7266c6fc542c0f289a4bca0e3
- Loading branch information
1 parent
f4c7374
commit ec65aed
Showing
14 changed files
with
264 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 24 additions & 9 deletions
33
horizon/horizon/dashboards/syspanel/templates/syspanel/tenants/_add_user.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
{% extends "horizon/common/_modal_form.html" %} | ||
{% load i18n %} | ||
<form id="form_add_tenant_user{{ user }}" method="post"> | ||
{% csrf_token %} | ||
{% for hidden in form.hidden_fields %} | ||
{{ hidden }} | ||
{% endfor %} | ||
<input name="user" type="hidden" value="{{ user.id }}" /> | ||
<input name="tenant" type="hidden" value="{{ tenant_id }}" /> | ||
<input id="add_tenant_user_{{ user.id }}" class="btn small add" title="User: {{ user.id }}" type="submit" value="{% trans "Add" %}" /> | ||
</form> | ||
|
||
{% block form_id %}add_user_form{% endblock %} | ||
{% block form_action %}{% url horizon:syspanel:tenants:add_user tenant_id user_id %}{% endblock %} | ||
|
||
{% block modal_id %}add_user_modal{% endblock %} | ||
{% block modal-header %}{% trans "Add User To Tenant" %}{% endblock %} | ||
|
||
{% block modal-body %} | ||
<div class="left"> | ||
<fieldset> | ||
{% include "horizon/common/_form_fields.html" %} | ||
</fieldset> | ||
</div> | ||
<div class="right"> | ||
<h3>{% trans "Description" %}:</h3> | ||
<p>{% trans "Select the user role for the tenant." %}</p> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block modal-footer %} | ||
<input class="btn primary pull-right" type="submit" value="{% trans "Add" %}" /> | ||
<a href="{% url horizon:syspanel:tenants:users tenant_id %}" class="btn secondary cancel close">{% trans "Cancel" %}</a> | ||
{% endblock %} |
10 changes: 0 additions & 10 deletions
10
horizon/horizon/dashboards/syspanel/templates/syspanel/tenants/_remove_user.html
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
horizon/horizon/dashboards/syspanel/templates/syspanel/tenants/add_user.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'syspanel/base.html' %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Add User To Tenant" %}{% endblock %} | ||
|
||
{% block page_header %} | ||
{% include "horizon/common/_page_header.html" with title=_("Add User To Tenant") %} | ||
{% endblock page_header %} | ||
|
||
{% block syspanel_main %} | ||
{% include 'syspanel/tenants/_add_user.html' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.