2012-03-30 15:54:30 +01:00
|
|
|
-set_meta_tags :title => [title_object(@project), t('layout.build_lists.new_header')]
|
2012-03-01 17:33:46 +00:00
|
|
|
= form_for [@project, @build_list], :html => { :class => :form, :method => :post } do |f|
|
|
|
|
%section.left
|
2012-05-05 22:43:04 +01:00
|
|
|
%h3= t("activerecord.attributes.build_list.build_for_platform")
|
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
|
2012-05-04 18:12:51 +01:00
|
|
|
= check_box_tag "build_for_platforms[]", pl.id, (params[:build_for_platforms]||[]).include?(pl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{pl.id}", :'data-released' => pl.released ? 1 : 0
|
2012-03-21 11:53:54 +00:00
|
|
|
= label_tag "bpls_#{pl.id}", pl.name
|
2012-05-05 22:43:04 +01:00
|
|
|
.offset25{:style => 'padding-left: 25px'}= render 'include_repos', :platform => pl
|
2012-03-20 15:45:01 +00:00
|
|
|
%section.right
|
2012-05-05 22:43:04 +01:00
|
|
|
%h3= t("activerecord.attributes.build_list.save_to_platform")
|
2012-05-24 11:21:57 +01:00
|
|
|
.lineForm= f.select :save_to_platform_id, @project.repositories.collect{|r| ["#{r.platform.name}/#{r.name}", r.platform.id]}, :include_blank => true
|
2012-04-17 10:37:09 +01:00
|
|
|
%h3= t("activerecord.attributes.build_list.project_version")
|
|
|
|
- if controller.action_name == 'new'
|
|
|
|
.lineForm= f.select :project_version, @project.versions_for_group_select, :selected => "latest_" + @project.default_branch
|
|
|
|
- else
|
|
|
|
.lineForm= f.select :project_version, @project.versions_for_group_select
|
2012-03-20 15:45:01 +00:00
|
|
|
%h3= t("activerecord.attributes.build_list.arch")
|
|
|
|
- Arch.recent.each do |arch|
|
|
|
|
.both
|
2012-05-05 22:43:04 +01:00
|
|
|
= check_box_tag "arches[]", arch.id, (params[:arches]||[]).include?(arch.id.to_s) || controller.action_name == 'new', :id => "arches_#{arch.id}"
|
2012-03-20 15:45:01 +00:00
|
|
|
= label_tag "arches_#{arch.id}", arch.name
|
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-05-24 11:21:57 +01:00
|
|
|
:javascript
|
|
|
|
var FROZEN_PLS = [#{ @project.repositories.map { |r| r.id if r.platform.released }.delete_if { |i| i.nil? }.join(", ") }];
|
|
|
|
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'projects/base/submenu'
|