Fixing the edit security group rules form
bug 898862 Change-Id: I8273dee3d49d655073a7a0818150b1ba960bcca4
This commit is contained in:
parent
56dd28bb52
commit
4a4c983c01
|
@ -1,19 +1,12 @@
|
|||
{% extends "horizon/common/_modal_form.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block form_id %}security_group_rule_form{% endblock %}
|
||||
{% block form_action %}{% url horizon:nova:access_and_security:security_groups:edit_rules security_group.id %}{% endblock %}
|
||||
|
||||
{% block modal_id %}security_group_rule_modal{% endblock %}
|
||||
{% block modal-header %}Edit Security Group Rules{% endblock %}
|
||||
|
||||
{% block modal-body %}
|
||||
<div class="left">
|
||||
<fieldset>
|
||||
<h3>{% trans "Add a rule"%}</h3>
|
||||
{% include "horizon/common/_form_fields.html" %}
|
||||
</fieldset>
|
||||
<div id="security_group_rule_modal" class="{% block modal_class %}modal{% if hide %} hide {% else %} static_page{% endif %}{% endblock %}">
|
||||
<div class="modal-header">
|
||||
{% if hide %}<a href="#" class="close">×</a>{% endif %}
|
||||
<h3>Edit Security Group Rules</h3>
|
||||
</div>
|
||||
<div class="modal-body clearfix">
|
||||
<div class="right">
|
||||
<h3> {% trans "Rules for Security Group" %} '{{security_group.name}}'</h3>
|
||||
<table id="security_groups" class="zebra-striped">
|
||||
|
@ -45,9 +38,18 @@
|
|||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block modal-footer %}
|
||||
<form id="edit_security_group_rule_form" action="{% url horizon:nova:access_and_security:security_groups:edit_rules security_group.id %}" method="post">
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
{% include "horizon/common/_form_fields.html" %}
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input class="btn primary pull-right" type="submit" value="{% trans "Add Rule" %}" />
|
||||
<a href="{% url horizon:nova:access_and_security:index %}" class="btn secondary cancel close">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% block modal-footer %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -643,12 +643,11 @@ table form {
|
|||
margin-bottom: 115px;
|
||||
}
|
||||
|
||||
|
||||
#security_group_rule_modal .left input, #security_group_rule_modal .left select, #security_group_rule_modal .left {
|
||||
width: 150px;
|
||||
#edit_security_group_rule_form {
|
||||
float: right;
|
||||
width: 163px;
|
||||
}
|
||||
|
||||
#security_group_rule_modal .left fieldset {
|
||||
#edit_security_group_rule_form fieldset {
|
||||
width: 163px;
|
||||
}
|
||||
|
||||
|
@ -658,12 +657,13 @@ table form {
|
|||
|
||||
#security_group_rule_modal .right {
|
||||
width: 475px;
|
||||
float: right;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
#security_group_rule_modal .right table {
|
||||
margin-top: 31px;
|
||||
}
|
||||
|
||||
table tr.odd.good td { border: 1px solid #92fd75; }
|
||||
table tr.even.good td { border: 1px solid #88f06d; }
|
||||
table tr.odd.bad td { border: 1px solid #ffb7b8; }
|
||||
|
|
Loading…
Reference in New Issue