Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add update method of security group name and description
make it possible to edit the name and description of common security groups, we can not rename the default. Fixes: bug #918393 Change-Id: I62ec1edc310fd5b3ffc2ad232e64c7090c1d38e4
- Loading branch information
1 parent
48e60c0
commit e6606c1
Showing
11 changed files
with
180 additions
and
2 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
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
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
26 changes: 26 additions & 0 deletions
26
...ds/project/access_and_security/templates/access_and_security/security_groups/_update.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,26 @@ | ||
{% extends "horizon/common/_modal_form.html" %} | ||
{% load i18n %} | ||
{% load url from future %} | ||
|
||
{% block form_id %}update_security_group_form{% endblock %} | ||
{% block form_action %}{% url 'horizon:project:access_and_security:security_groups:update' security_group.id%}{% endblock %} | ||
|
||
{% block modal-header %}{% trans "Edit Security Group" %}{% endblock %} | ||
{% block modal_id %}update_security_group_modal{% 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 "From here you can modify name and description of a security group." %}</p> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block modal-footer %} | ||
<input class="btn btn-primary pull-right" type="submit" value="{% trans "Edit Security Group" %}" /> | ||
<a href="{% url 'horizon:project:access_and_security:index' %}" class="btn secondary cancel close">{% trans "Cancel" %}</a> | ||
{% endblock %} |
11 changes: 11 additions & 0 deletions
11
...rds/project/access_and_security/templates/access_and_security/security_groups/update.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 'base.html' %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Edit Security Group" %}{% endblock %} | ||
|
||
{% block page_header %} | ||
{% include "horizon/common/_page_header.html" with title=_("Edit Security Group") %} | ||
{% endblock page_header %} | ||
|
||
{% block main %} | ||
{% include 'project/access_and_security/security_groups/_update.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