-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed cloudTenantFormController code.
- Loading branch information
1 parent
4ad1eb9
commit f483380
Showing
4 changed files
with
4 additions
and
192 deletions.
There are no files selected for viewing
59 changes: 0 additions & 59 deletions
59
app/assets/javascripts/controllers/cloud_tenant/cloud_tenant_form_controller.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }) |
73 changes: 0 additions & 73 deletions
73
spec/javascripts/controllers/cloud/cloud_tenant_form_controller_spec.js
This file was deleted.
Oops, something went wrong.