Skip to content

Commit

Permalink
Removed cloudTenantFormController code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Nov 15, 2018
1 parent 4ad1eb9 commit f483380
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 192 deletions.

This file was deleted.

27 changes: 2 additions & 25 deletions app/views/cloud_tenant/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,25 +1,2 @@
%form#form_div{:name => "angularForm",
'ng-controller' => "cloudTenantFormController as vm",
'miq-form' => true,
'model' => 'vm.cloudTenantModel',
'model-copy' => 'vm.modelCopy',
'form-changed' => true}
= render :partial => "layouts/flash_msg"
%h3
= _('Edit Cloud Tenant')
.form-horizontal
.form-group
%label.col-md-2.control-label
= _('Tenant Name')
.col-md-8
%input.form-control{:type => "text",
:name => "name",
'ng-model' => "vm.cloudTenantModel.name",
'ng-maxlength' => 128,
:miqrequired => false}

= render :partial => "layouts/angular/generic_form_buttons"

:javascript
ManageIQ.angular.app.value('cloudTenantFormId', '#{@tenant.id}');
miq_bootstrap(jQuery('#form_div'));
.col-md-12
= react('CloudTennantForm', { :cloudTenantFormId => @tenant.id })
37 changes: 2 additions & 35 deletions app/views/cloud_tenant/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,35 +1,2 @@
%form#form_div{:name => "angularForm",
'ng-controller' => "cloudTenantFormController as vm",
'miq-form' => true,
'model' => 'vm.cloudTenantModel',
'model-copy' => 'vm.modelCopy',
'form-changed' => true}
= render :partial => "layouts/flash_msg"
%h3
= _('Basic Information')
.form-horizontal
.form-group{"ng-class" => "{'has-error': angularForm.ems_id.$invalid}"}
%label.col-md-2.control-label
= _('Cloud Provider')
.col-md-8
= select_tag("ems_id",
options_for_select([["<#{_('Choose')}>", nil]] + @ems_choices.sort),
"ng-model" => "vm.cloudTenantModel.ems_id",
"required" => "",
"miq-select" => "")
.form-horizontal
.form-group
%label.col-md-2.control-label
= _('Tenant Name')
.col-md-8
%input.form-control{:type => "text",
:name => "name",
'ng-model' => "vm.cloudTenantModel.name",
'ng-maxlength' => 128,
:required => ''}

= render :partial => "layouts/angular/generic_form_buttons"

:javascript
ManageIQ.angular.app.value('cloudTenantFormId', '#{@tenant.id || "new"}');
miq_bootstrap('#form_div');
.col-md-12
= react('CloudTennantForm', { :emsChoices => @ems_choices })

This file was deleted.

0 comments on commit f483380

Please sign in to comment.