mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
Feature #4363: Fix AR update dialog
This commit is contained in:
parent
e59b9869e9
commit
e393031304
@ -19,10 +19,10 @@
|
||||
<form data-abide="ajax" id="add_ar_form" action="">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<h3 class="subheader" id="">
|
||||
{{tr "Virtual Network"}} <span id="vnet_id"/>
|
||||
<br>
|
||||
<h3>
|
||||
{{tr "New Address Range"}}
|
||||
<br>
|
||||
<small>{{tr "Virtual Network"}} <span id="vnet_id"/></small>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -70,9 +70,12 @@ define(function(require) {
|
||||
|
||||
that.arTab.setup(context, "update_ar");
|
||||
|
||||
$('#update_ar_form',context).on('invalid.fndtn.abide', function () {
|
||||
|
||||
$('#update_ar_form', context)
|
||||
.on('forminvalid.zf.abide', function(ev, frm) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing."));
|
||||
}).on('valid.fndtn.abide', function () {
|
||||
})
|
||||
.on('formvalid.zf.abide', function(ev, frm) {
|
||||
var data = that.arTab.retrieve();
|
||||
|
||||
data['AR_ID'] = that.arId;
|
||||
@ -81,7 +84,10 @@ define(function(require) {
|
||||
Sunstone.runAction('Network.update_ar', that.vnetId, obj);
|
||||
|
||||
return false;
|
||||
});
|
||||
})
|
||||
.on("submit", function(ev) {
|
||||
ev.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
function _onShow(context) {
|
||||
|
@ -19,10 +19,10 @@
|
||||
<form data-abide="ajax" id="update_ar_form" action="">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<h3 class="subheader" id="">
|
||||
{{tr "Virtual Network"}} <span id="vnet_id"/>
|
||||
<br>
|
||||
<h3>
|
||||
{{tr "Edit Address Range"}} <span id="ar_id"/>
|
||||
<br>
|
||||
<small>{{tr "Virtual Network"}} <span id="vnet_id"/></small>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -58,19 +58,23 @@
|
||||
<input wizard_field="ULA_PREFIX" type="text" name="ULA_PREFIX" id="{{str_ar_tab_id}}_ula_prefix"/>
|
||||
</div>
|
||||
</div>
|
||||
{{#advancedSection (tr "Advanced Options") }}
|
||||
<fieldset>
|
||||
<legend>{{tr "Custom attributes"}}</legend>
|
||||
<div class="row" id="{{str_ar_tab_id}}_custom_tags">
|
||||
<div class="12 columns">
|
||||
{{{customTagsHTML}}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{tr "Security Groups"}}</legend>
|
||||
<div class="row" id="{{str_ar_tab_id}}_security_groups">
|
||||
{{{securityGroupsTableHTML}}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/advancedSection}}
|
||||
<div class="row">
|
||||
<div class="medium-12 columns">
|
||||
{{#advancedSection (tr "Advanced Options") }}
|
||||
<fieldset>
|
||||
<legend>{{tr "Custom attributes"}}</legend>
|
||||
<div class="row" id="{{str_ar_tab_id}}_custom_tags">
|
||||
<div class="12 columns">
|
||||
{{{customTagsHTML}}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{tr "Security Groups"}}</legend>
|
||||
<div class="row" id="{{str_ar_tab_id}}_security_groups">
|
||||
{{{securityGroupsTableHTML}}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/advancedSection}}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user