-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable new cloud volume for provider #715
Merged
h-kataria
merged 2 commits into
ManageIQ:master
from
gberginc:enable_new_cloud_volume_for_provider
Mar 27, 2017
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
app/helpers/application_helper/button/mixins/sub_list_view_screen_mixin.rb
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,5 +1,5 @@ | ||
module ApplicationHelper::Button::Mixins::SubListViewScreenMixin | ||
def sub_list_view_screen? | ||
@lastaction == 'show' && [email protected]?(%w(main vms instances all_vms)) | ||
@lastaction == 'show' && [email protected]?(%w(main vms instances all_vms cloud_volumes)) | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.form-group{"ng-class" => "{'has-error': angularForm.name.$invalid}"} | ||
%label.col-md-2.control-label | ||
= _('Volume Name') | ||
.col-md-8 | ||
%input.form-control{:type => "text", | ||
:name => "name", | ||
'ng-model' => "cloudVolumeModel.name", | ||
'ng-maxlength' => 128, | ||
:required => "", | ||
:checkchange => true} | ||
%span.help-block{"ng-show" => "angularForm.name.$error.required"} | ||
= _("Required") | ||
|
||
.form-group{"ng-class" => "{'has-error': angularForm.aws_volume_type.$invalid}", | ||
"ng-if" => "cloudVolumeModel.emstype == 'ManageIQ::Providers::Amazon::StorageManager::Ebs'"} | ||
%label.col-md-2.control-label | ||
= _('Cloud Volume Type') | ||
.col-md-8 | ||
%select{"name" => "aws_volume_type", | ||
"ng-model" => "cloudVolumeModel.aws_volume_type", | ||
"ng-options" => "voltype.type as voltype.name for voltype in awsVolumeTypes", | ||
"ng-change" => "awsVolumeTypeChanged(cloudVolumeModel.aws_volume_type)", | ||
"ng-disabled" => "formId != 'new' && cloudVolumeModel.aws_volume_type == 'standard'", | ||
"required" => "", | ||
:checkchange => true, | ||
"selectpicker-for-select-tag" => ""} | ||
%option{"value" => "", "disabled" => ""} | ||
= "<#{_('Choose')}>" | ||
%span.help-block{"ng-show" => "angularForm.aws_volume_type.$error.required"} | ||
= _("Required") | ||
|
||
.form-group{"ng-class" => "{'has-error': angularForm.size.$invalid}"} | ||
%label.col-md-2.control-label | ||
= _('Size (in gigabytes)') | ||
.col-md-8 | ||
%input.form-control{:type => "text", | ||
:name => "size", | ||
'ng-model' => "cloudVolumeModel.size", | ||
'ng-maxlength' => 10, | ||
'ng-change' => "sizeChanged(cloudVolumeModel.size)", | ||
'ng-disabled' => "formId != 'new' && (cloudVolumeModel.emstype != 'ManageIQ::Providers::Amazon::StorageManager::Ebs' || cloudVolumeModel.aws_volume_type == 'standard')", | ||
:required => "", | ||
:checkchange => true} | ||
%span.help-block{"ng-show" => "angularForm.size.$error.required"} | ||
= _("Required") | ||
|
||
.form-group{"ng-class" => "{'has-error': angularForm.aws_iops.$invalid}", | ||
"ng-if" => "cloudVolumeModel.emstype == 'ManageIQ::Providers::Amazon::StorageManager::Ebs'"} | ||
%label.col-md-2.control-label | ||
= _('IOPS') | ||
.col-md-8 | ||
%input.form-control{:type => "text", | ||
:name => "aws_iops", | ||
'ng-model' => "cloudVolumeModel.aws_iops", | ||
'ng-maxlength' => 50, | ||
'ng-disabled' => "cloudVolumeModel.aws_volume_type != 'io1'", | ||
"ng-required" => "cloudVolumeModel.aws_volume_type == 'io1'", | ||
:checkchange => true} | ||
%span.help-block{"ng-show" => "cloudVolumeModel.aws_volume_type == 'io1' && angularForm.aws_iops.$error.required"} | ||
= _("Required") |
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
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
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 |
---|---|---|
|
@@ -481,7 +481,6 @@ | |
backup_select | ||
snapshot_new | ||
edit | ||
cloud_volume_form_fields | ||
cloud_volume_tenants | ||
index | ||
new | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gberginc This is something similar to what I suggested to @miha-plesko .
If we could use an API to retrieve the Storage Managers, that would be perfect...
(can be totally done in a follow-up PR)