Skip to content
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

Configuration - notify backend when quad_truncate gets changed #4942

Merged
merged 2 commits into from
Nov 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions app/views/configuration/_ui_1.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
= select_tag("quad_truncate",
options_for_select([[_("Front (...1234)"), "f"],
[_("Middle (AB...34)"), "m"],
[_("Back (ABCD...)"), "b"]],
@edit[:new][:display][:quad_truncate]),
:class => "selectpicker")
[_("Back (ABCD...)"), "b"]], @edit[:new][:display][:quad_truncate]),
:class => "selectpicker")
:javascript
miqSelectPickerEvent('quad_truncate', '#{url}');

%fieldset
%h3
Expand All @@ -41,9 +42,8 @@
options_for_select(start_page_options, @edit[:new][:display][:startpage]),
"data-live-search" => "true",
:class => "selectpicker")

:javascript
miqSelectPickerEvent("start_page", "#{url}")
:javascript
miqSelectPickerEvent('start_page', '#{url}');
.col-md-12.col-lg-6
%fieldset
%h3
Expand All @@ -56,12 +56,11 @@
%label.col-md-3.control-label
= _(item_per_page[0])
.col-md-8
= select_tag(_(item_per_page[1]),
= select_tag(item_per_page[1],
options_for_select(pp_choices, @edit[:new][:perpage][item_per_page[2]]),
:class => "selectpicker")

:javascript
miqSelectPickerEvent("#{item_per_page[1]}", "#{url}")
:class => "selectpicker")
:javascript
miqSelectPickerEvent('#{item_per_page[1]}', '#{url}');
%fieldset
%h3
= _('Topology Default Items in View')
Expand All @@ -70,11 +69,11 @@
%label.col-md-3.control-label
= _(item_per_page[0])
.col-md-8
= select_tag(_(item_per_page[1]),
= select_tag(item_per_page[1],
options_for_select([[N_("Unlimited"), 0]].concat(pp_choices), @edit[:new][:topology][item_per_page[2]]),
:class => "selectpicker")
:javascript
miqSelectPickerEvent("#{item_per_page[1]}", "#{url}")
:class => "selectpicker")
:javascript
miqSelectPickerEvent('#{item_per_page[1]}', '#{url}');
%fieldset
%h3
= _('Display Settings')
Expand All @@ -89,9 +88,10 @@
options_for_select(display_settings[2], @edit[:new][:display][display_settings[3]]),
'data-live-search' => display_settings[4],
:class => "selectpicker")

:javascript
miqInitSelectPicker();
miqSelectPickerEvent("#{display_settings[1]}", "#{url}")
:javascript
miqSelectPickerEvent('#{display_settings[1]}', '#{url}');

= render :partial => '/layouts/form_buttons'

:javascript
miqInitSelectPicker();