-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to edit options settings for container providers
Reading the details about the provider's options from the api endpiont /api/provider_options/<provider class> and creating tabs for them.
- Loading branch information
Erez Freiberger
committed
Aug 2, 2017
1 parent
ecca585
commit 69336b8
Showing
6 changed files
with
136 additions
and
6 deletions.
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
26 changes: 26 additions & 0 deletions
26
app/views/layouts/angular-bootstrap/_provider_advanced_settings.html.haml
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,26 @@ | ||
%h3 | ||
{{ emsCommonModel.provider_options_description.advanced_settings.label }} | ||
%p | ||
{{ emsCommonModel.provider_options_description.advanced_settings.help_text }} | ||
%div{"ng-repeat" => "settings_section in emsCommonModel.advanced_settings"} | ||
%h4 | ||
{{ settings_section.label }} | ||
%p | ||
{{ settings_section.help_text }} | ||
%div{"ng-repeat" => "option in settings_section.settings"} | ||
%div{"ng-show" => "true"} | ||
.form-group{"ng-attr-ng-class" => "{{ \"{'has_error': angularForm.provider_options_\" + settings_section.section_name + \"_\" + option.name + \".$invalid}\" }}"} | ||
%label.col-md-2.control-label{"ng-attr-for" => "{{ \"provider_options_\" + settings_section.section_name + \"_\" + option.name }}"} | ||
{{ option.label }} | ||
.col-md-4 | ||
%input.form-control{"type" => "text", | ||
"ng-attr-id" => "{{ \"provider_options_\" + settings_section.section_name + \"_\" + option.name }}", | ||
"ng-attr-name" => "{{ \"provider_options_\" + settings_section.section_name + \"_\" + option.name }}", | ||
"ng-model" => "option.value", | ||
"checkchange" => "", | ||
"ng-trim" => false, | ||
"detect_spaces" => "", | ||
"placeholder" => "{{ option.global_default }}", | ||
"prefix" => "provider_options"} | ||
%span.help-block{"ng-attr-ng-show" => "{{ \"angularForm.provider_options_\" + settings_section.section_name + \"_\" + option.name + \".$error.detectedSpaces\" }}"} | ||
= _("Spaces are prohibited") |
23 changes: 23 additions & 0 deletions
23
app/views/layouts/angular-bootstrap/_provider_proxy_settings.html.haml
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,23 @@ | ||
- prefix ||= 'provider_options' | ||
|
||
%h4 | ||
{{ emsCommonModel.provider_options_description.proxy_settings.label }} | ||
%p | ||
{{ emsCommonModel.provider_options_description.proxy_settings.help_text }} | ||
%div{"ng-repeat" => "option in emsCommonModel.proxy_settings.settings"} | ||
%div{"ng-show" => "true"} | ||
.form-group{"ng-attr-ng-class" => "{{ \"{'has_error': angularForm.provider_options_proxy_settings_\" + option.name + \".$invalid}\" }}"} | ||
%label.col-md-2.control-label{"ng-attr-for" => "{{ \"provider_options_proxy_settings_\" + option.name }}"} | ||
{{ option.label }} | ||
.col-md-4 | ||
%input.form-control{"type" => "text", | ||
"ng-attr-id" => "{{ \"provider_options_proxy_settings_\" + option.name }}", | ||
"ng-attr-name" => "{{ \"provider_options_proxy_settings_\" + option.name }}", | ||
"ng-model" => "option.value", | ||
"checkchange" => "", | ||
"ng-trim" => false, | ||
"detect_spaces" => "", | ||
"placeholder" => "{{ option.global_default }}", | ||
"prefix" => "#{prefix}"} | ||
%span.help-block{"ng-attr-ng-show" => "{{ \"angularForm.provider_options_proxy_settings_\" + option.name + \".$error.detectedSpaces\" }}"} | ||
= _("Spaces are prohibited") |
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