Revision 8fdeb228

View differences:

src/sunstone/public/app/tabs/vnets-tab/form-panels/create.js
116 116
    $("#vnet_wizard_ar_btn", context).bind("click", function() {
117 117
      that.addARTab(number_of_ar, context);
118 118
      number_of_ar++;
119

  
119
      var mode = $("#network_mode", context).val();
120
      if(mode == "vcenter"){
121
        $(".sec_groups_datatable", context).hide();
122
      }
120 123
      return false;
121 124
    });
122 125

  
......
130 133
      $('input#vn_mad', context).removeAttr('value');
131 134
      $('#vcenter_switch_name', context).removeAttr('required');
132 135
      $('#vcenter_cluster_id', context).removeAttr('required');
136
      $(".sec_groups_datatable", context).show();
137
      $('#vnetCreateSecurityTab-label').show();
133 138
      switch ($(this).val()) {
134 139
      case "dummy":
135 140
        $("div.mode_param.dummy", context).show();
......
169 174
        break;
170 175
      case "vcenter":
171 176
        $("div.mode_param.vcenter", context).show();
177
        $(".sec_groups_datatable", context).hide();
172 178
        $("div.mode_param.vcenter [wizard_field]", context).prop('wizard_field_disabled', false);
173 179
        $('input#bridge', context).attr('value', $('#name', context).val());
174 180
        $('#vcenter_switch_name', context).attr('required', '');
181
        $('#vnetCreateSecurityTab-label').hide();
175 182
        ResourceSelect.insert({
176 183
          context: $('#vcenter_cluster_id', context),
177 184
          resourceName: 'Host',
src/sunstone/public/app/tabs/vnets-tab/utils/ar-tab/html.hbs
81 81
          </div>
82 82
        </div>
83 83
      </fieldset>
84
      <fieldset>
84
      <fieldset class="sec_groups_datatable">
85 85
        <legend>{{tr "Security Groups"}}</legend>
86 86
        <div class="row" id="{{str_ar_tab_id}}_security_groups">
87 87
          {{{securityGroupsTableHTML}}}

Also available in: Unified diff