Skip to content

Commit

Permalink
Merge pull request #3371 from eclarizio/BZ1540273
Browse files Browse the repository at this point in the history
Fix for different behavior of items in regards to default values on dialog sample page
  • Loading branch information
Dan Clarizio committed Feb 5, 2018
2 parents 0054f0a + d7b7344 commit 4bddbcf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/miq_ae_customization/_dialog_sample.html.haml
Expand Up @@ -31,7 +31,7 @@
= text_field_tag(field_id, field.sample_text, :maxlength => 20, :disabled => true)

- when "DialogFieldCheckBox"
= check_box_tag(field_id, "1", false, :disabled => true)
= check_box_tag(field_id, "1", field.default_value == 't', :disabled => true)
- when "DialogFieldDateControl", "DialogFieldDateTimeControl"
- if field.show_past_dates
:javascript
Expand Down Expand Up @@ -90,8 +90,10 @@

- else
- val.each_with_index do |rb, i|
%input{:type => "radio", :disabled => true, :checked => (field.default_value == rb[0]),
:id => rb[0], :value => rb[1], :name => rb[0]}
%input{:type => "radio",
:disabled => true,
:checked => (field.default_value == rb[0]),
:value => rb[0]}
 
= rb[1]
 
Expand Down

0 comments on commit 4bddbcf

Please sign in to comment.