app/views/layouts/exp_atom/_edit_regkey.html.haml
- url = url_for_only_path(:action => 'exp_changed')
- input_attrs = {:maxlength => 500, "data-miq_observe" => {:interval => '.5', :url => url}.to_json}
%span#chosen_regkey_span
= _("Key:")
= text_field_tag("chosen_regkey", @edit[@expkey][:exp_regkey], input_attrs)
- unless @edit[@expkey][:exp_key] == "KEY EXISTS"
%span#chosen_regval_span
= _("Value:")
= text_field_tag("chosen_regval", @edit[@expkey][:exp_regval], input_attrs)
- options = options_for_select(MiqExpression.get_col_operators(:regkey), @edit[@expkey][:exp_key])
- select_attrs = {:multiple => false, :class => 'selectpicker', "data-miq_sparkle_on" => true,
"data-miq_sparkle_off" => true, "data-live-search" => true}
= select_tag('chosen_key', options, select_attrs)
-# IS NULL, IS NOT NULL, IS EMPTY, IS NOT EMPTY, KEY EXISTS, VALUE EXISTS
- unless @edit[@expkey][:exp_key].include?("NULL") || @edit[@expkey][:exp_key].include?("EMPTY") || @edit[@expkey][:exp_key].include?("EXISTS")
%span#chosen_value_span
= _("Data:")
= text_field_tag("chosen_value", @edit[@expkey][:exp_value], input_attrs)
:javascript
miqInitSelectPicker();
miqSelectPickerEvent('chosen_key', '#{url}');