Revision e3930313

View differences:

src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar/html.hbs
19 19
    <form data-abide="ajax" id="add_ar_form" action="">
20 20
      <div class="row">
21 21
        <div class="large-12 columns">
22
          <h3 class="subheader" id="">
23
            {{tr "Virtual Network"}} <span id="vnet_id"/>
24
            <br>
22
          <h3>
25 23
            {{tr "New Address Range"}}
24
            <br>
25
            <small>{{tr "Virtual Network"}} <span id="vnet_id"/></small>
26 26
          </h3>
27 27
        </div>
28 28
      </div>
src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar.js
70 70
    
71 71
    that.arTab.setup(context, "update_ar");
72 72

  
73
    $('#update_ar_form',context).on('invalid.fndtn.abide', function () {
73

  
74
    $('#update_ar_form', context)
75
      .on('forminvalid.zf.abide', function(ev, frm) {
74 76
        Notifier.notifyError(Locale.tr("One or more required fields are missing."));
75
    }).on('valid.fndtn.abide', function () {
77
      })
78
      .on('formvalid.zf.abide', function(ev, frm) {
76 79
        var data = that.arTab.retrieve();
77 80

  
78 81
        data['AR_ID'] = that.arId;
......
81 84
        Sunstone.runAction('Network.update_ar', that.vnetId, obj);
82 85

  
83 86
        return false;
84
    });
87
      })
88
      .on("submit", function(ev) {
89
        ev.preventDefault();
90
      });
85 91
  }
86 92

  
87 93
  function _onShow(context) {
src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar/html.hbs
19 19
    <form data-abide="ajax" id="update_ar_form" action="">
20 20
      <div class="row">
21 21
        <div class="large-12 columns">
22
          <h3 class="subheader" id="">
23
            {{tr "Virtual Network"}} <span id="vnet_id"/>
24
            <br>
22
          <h3>
25 23
            {{tr "Edit Address Range"}} <span id="ar_id"/>
24
            <br>
25
            <small>{{tr "Virtual Network"}} <span id="vnet_id"/></small>
26 26
          </h3>
27 27
        </div>
28 28
      </div>
src/sunstone/public/app/tabs/vnets-tab/utils/ar-tab/html.hbs
58 58
    <input wizard_field="ULA_PREFIX" type="text" name="ULA_PREFIX" id="{{str_ar_tab_id}}_ula_prefix"/>
59 59
  </div>
60 60
</div>
61
{{#advancedSection (tr "Advanced Options") }}
62
  <fieldset>
63
    <legend>{{tr "Custom attributes"}}</legend>
64
    <div class="row" id="{{str_ar_tab_id}}_custom_tags">
65
      <div class="12 columns">
66
        {{{customTagsHTML}}}
67
      </div>
68
    </div>
69
  </fieldset>
70
  <fieldset>
71
    <legend>{{tr "Security Groups"}}</legend>
72
    <div class="row" id="{{str_ar_tab_id}}_security_groups">
73
      {{{securityGroupsTableHTML}}}
74
    </div>
75
  </fieldset>
76
{{/advancedSection}}
61
<div class="row">
62
  <div class="medium-12 columns">
63
    {{#advancedSection (tr "Advanced Options") }}
64
      <fieldset>
65
        <legend>{{tr "Custom attributes"}}</legend>
66
        <div class="row" id="{{str_ar_tab_id}}_custom_tags">
67
          <div class="12 columns">
68
            {{{customTagsHTML}}}
69
          </div>
70
        </div>
71
      </fieldset>
72
      <fieldset>
73
        <legend>{{tr "Security Groups"}}</legend>
74
        <div class="row" id="{{str_ar_tab_id}}_security_groups">
75
          {{{securityGroupsTableHTML}}}
76
        </div>
77
      </fieldset>
78
    {{/advancedSection}}
79
  </div>
80
</div>

Also available in: Unified diff