47 lines
2.4 KiB
Plaintext
47 lines
2.4 KiB
Plaintext
-set_meta_tags :title => [title_object(@project), t('layout.build_lists.new_header')]
|
|
= form_for [@project, @build_list], :html => { :class => :form, :method => :post } do |f|
|
|
%section.left
|
|
%h3= t("activerecord.attributes.build_list.build_for_platform")
|
|
.all_platforms
|
|
- Platform.main.each do |pl|
|
|
- if pl.repository_ids.size > 0
|
|
.both
|
|
%div{:id => "build_for_pl_#{pl.id}", :class => 'build_for_pl'}= pl.name
|
|
.offset25= render 'include_repos', :platform => pl
|
|
%section.right
|
|
%h3= t("activerecord.attributes.build_list.save_to_repository")
|
|
.lineForm= f.select :save_to_repository_id, @project.repositories.collect{|r| ["#{r.platform.name}/#{r.name}", r.id, {:publish_without_qa => r.publish_without_qa? ? 1 : 0, :platform_id => r.platform.id}]}
|
|
%h3= t("activerecord.attributes.build_list.project_version")
|
|
.lineForm= f.select :project_version, versions_for_group_select(@project), :selected => params[:build_list].try(:fetch, :project_version) || @project.default_branch
|
|
%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) || (controller.action_name == 'new' && %w(i586 x86_64).include?(arch.name)), :id => "arches_#{arch.id}"
|
|
= label_tag "arches_#{arch.id}", arch.name
|
|
%h3= t("activerecord.attributes.build_list.update_type")
|
|
.lineForm= f.select :update_type, BuildList::UPDATE_TYPES
|
|
|
|
= render 'shared/autocomplete_form',
|
|
:field => :extra_repositories,
|
|
:field_class => Repository,
|
|
:placeholder => 'uxteam_personal',
|
|
:subject => @build_list,
|
|
:autocomplete_path => autocomplete_extra_repositories_autocompletes_path,
|
|
:default_values => @project.repositories.select{ |r| r.platform.personal? }
|
|
= render 'shared/autocomplete_form',
|
|
:field => :extra_build_lists,
|
|
:field_class => BuildList,
|
|
:placeholder => '1000000',
|
|
:subject => @build_list,
|
|
:autocomplete_path => autocomplete_extra_build_list_autocompletes_path
|
|
|
|
%h3= t("activerecord.attributes.build_list.preferences")
|
|
- [:auto_publish, :auto_create_container].each do |kind|
|
|
.both
|
|
= f.check_box kind
|
|
= f.label kind
|
|
%br
|
|
= f.submit t("layout.projects.build_button")
|
|
.both
|
|
%br
|
|
= render 'projects/base/submenu' |