2012-03-01 17:33:46 +00:00
|
|
|
= form_for [@project, @build_list], :html => { :class => :form, :method => :post } do |f|
|
|
|
|
%section.left
|
|
|
|
%h3= t("activerecord.attributes.build_list.project_version")
|
|
|
|
.lineForm= f.select :project_version, @project.versions
|
|
|
|
%h3= t("activerecord.attributes.build_list.bpl")
|
2012-03-19 19:52:46 +00:00
|
|
|
.all_platforms
|
2012-03-20 10:36:31 +00:00
|
|
|
- Platform.main.each do |pl|
|
2012-03-20 15:45:01 +00:00
|
|
|
- if pl.repository_ids.size > 0
|
|
|
|
.both
|
|
|
|
- if pl.platform_type == 'main'
|
|
|
|
= check_box_tag "bpls[]", pl.id, (params[:bpls]||[]).include?(pl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{pl.id}"
|
|
|
|
= label_tag "bpls_#{pl.id}", pl.name
|
|
|
|
- else
|
|
|
|
= check_box_tag "", "", :class => "additional_pl", :disabled => :disabled
|
|
|
|
= label_tag "", pl.name, :class => "additional_pl"
|
|
|
|
.offset25{:style => 'padding-left: 25px'}
|
|
|
|
= render 'include_repos', :platform => pl
|
2012-03-19 19:52:46 +00:00
|
|
|
-#%div{:class => "include_repos_#{p.id}"}= render 'include_repos', :platform => p
|
|
|
|
-#- Platform.main.each do |bpl|
|
|
|
|
-# .both
|
|
|
|
-# = check_box_tag "bpls[]", bpl.id, (params[:bpls]||[]).include?(bpl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{bpl.id}"
|
|
|
|
-# = label_tag "bpls_#{bpl.id}", bpl.name
|
2012-03-20 15:45:01 +00:00
|
|
|
%section.right
|
|
|
|
%h3= t("activerecord.attributes.build_list.arch")
|
|
|
|
- Arch.recent.each do |arch|
|
|
|
|
.both
|
|
|
|
= check_box_tag "arches[]", arch.id, (params[:arches]||[]).include?(arch.id.to_s), :id => "arches_#{arch.id}"
|
|
|
|
= label_tag "arches_#{arch.id}", arch.name
|
|
|
|
%h3= t("activerecord.attributes.build_list.pl")
|
|
|
|
.lineForm= f.select :pl_id, @project.repositories.collect{|r| ["#{r.platform.name}/#{r.name}", r.platform.id]}
|
2012-03-01 17:33:46 +00:00
|
|
|
%h3= t("activerecord.attributes.build_list.update_type")
|
|
|
|
.lineForm= f.select :update_type, BuildList::UPDATE_TYPES
|
|
|
|
%h3= t("activerecord.attributes.build_list.preferences")
|
|
|
|
.both
|
|
|
|
= f.check_box :auto_publish
|
|
|
|
= f.label :auto_publish
|
|
|
|
.both
|
|
|
|
= f.check_box :build_requires
|
|
|
|
= f.label :build_requires
|
|
|
|
%br
|
|
|
|
= f.submit t("layout.projects.build_button")
|
2012-03-19 20:04:33 +00:00
|
|
|
-# %h3= t("activerecord.attributes.build_list.include_repos")
|
|
|
|
-# #include_repos
|
2011-04-11 17:37:09 +01:00
|
|
|
|
2012-03-19 19:52:46 +00:00
|
|
|
-#.preloaded_include_repos{:style => 'display: none'}
|
|
|
|
-# - @project.platforms.each do |p|
|
|
|
|
-# %div{:class => "include_repos_#{p.id}"}= render 'include_repos', :platform => p
|
2012-03-01 17:33:46 +00:00
|
|
|
|
|
|
|
= render 'projects/submenu'
|