Fixed creating of build_lists: auto_publish && auto_create_container settings

This commit is contained in:
Vokhmin Alexey V 2013-08-15 23:20:18 +04:00
parent 61163736f4
commit 101d0665a8
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@
%h3= t("activerecord.attributes.build_list.preferences")
- [:auto_publish, :auto_create_container].each do |kind|
.both
- checked = params[:build_list].try(:[], kind)
= check_box_tag "build_list[#{kind}]", checked, checked
- checked, field = params[:build_list].try(:[], kind), "build_list[#{kind}]"
= hidden_field_tag field, false
= check_box_tag field, true, checked
= f.label kind
%br
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?