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-09-13 23:22:10 +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}"
|
|
|
|
=# label_tag "bpls_#{pl.id}", pl.name
|
|
|
|
%div{:id => "build_for_pl_#{pl.id}", :class => 'build_for_pl'}= pl.name
|
|
|
|
.offset25= render 'include_repos', :platform => pl
|
2012-03-20 15:45:01 +00:00
|
|
|
%section.right
|
2012-09-13 17:08:41 +01:00
|
|
|
%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}]}
|
2012-04-17 10:37:09 +01:00
|
|
|
%h3= t("activerecord.attributes.build_list.project_version")
|
2013-01-21 17:08:19 +00:00
|
|
|
.lineForm= f.select :project_version, versions_for_group_select(@project), :selected => params[:build_list].try(:fetch, :project_version) || @project.default_branch
|
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
|
2013-02-18 15:43:30 +00:00
|
|
|
|
2013-02-22 11:04:14 +00:00
|
|
|
#extra-repos-and-build-lists
|
2013-02-18 15:43:30 +00:00
|
|
|
%h3= t("activerecord.attributes.build_list.extra_repos")
|
2013-02-22 13:44:00 +00:00
|
|
|
%span.icon-question-sign
|
|
|
|
%div#extra-repos-and-build-lists-dialog{:title => t("activerecord.attributes.build_list.extra_repos")}
|
|
|
|
%b= t('helpers.extra_repos_and_build_lists.header')
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
%b= t('helpers.extra_repos_and_build_lists.build_lists.header')
|
|
|
|
- (1..4).each do |index|
|
|
|
|
%p= t("helpers.extra_repos_and_build_lists.build_lists.message#{index}").html_safe
|
|
|
|
%br
|
|
|
|
%b= t('helpers.extra_repos_and_build_lists.repos.header')
|
|
|
|
%p= t('helpers.extra_repos_and_build_lists.repos.message1')
|
2013-02-25 14:29:00 +00:00
|
|
|
%br
|
|
|
|
%b= t('helpers.extra_repos_and_build_lists.repos.header2')
|
2013-02-22 13:44:00 +00:00
|
|
|
%p= t('helpers.extra_repos_and_build_lists.repos.message2')
|
2013-02-25 14:29:00 +00:00
|
|
|
%p= t('helpers.extra_repos_and_build_lists.repos.message3').html_safe
|
2013-02-22 13:44:00 +00:00
|
|
|
|
2013-02-22 11:04:14 +00:00
|
|
|
= autocomplete_field_tag 'extra_repos', nil, autocomplete_to_extra_repos_and_builds_build_lists_path, :id_element => '#extra_repo_field'
|
2013-02-18 15:43:30 +00:00
|
|
|
= hidden_field_tag 'extra_repo', nil, :id => 'extra_repo_field'
|
|
|
|
= submit_tag t("layout.add"), :class => 'button', :id => 'add'
|
2013-02-21 22:12:37 +00:00
|
|
|
|
2013-02-18 15:43:30 +00:00
|
|
|
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
%tbody
|
2013-02-21 14:21:58 +00:00
|
|
|
= render :partial => 'extra', :collection => Repository.where(id: @build_list.extra_repositories)
|
2013-02-22 11:04:14 +00:00
|
|
|
= render :partial => 'extra', :collection => BuildList.where(id: @build_list.extra_build_lists)
|
2013-02-18 15:43:30 +00:00
|
|
|
|
2012-03-01 17:33:46 +00:00
|
|
|
%h3= t("activerecord.attributes.build_list.preferences")
|
2013-02-18 15:43:30 +00:00
|
|
|
- [:auto_publish, :auto_create_container, :use_save_to_repository].each do |kind|
|
|
|
|
.both
|
|
|
|
= f.check_box kind
|
|
|
|
= f.label kind
|
2012-03-01 17:33:46 +00:00
|
|
|
%br
|
|
|
|
= f.submit t("layout.projects.build_button")
|
|
|
|
|
2013-02-21 22:12:37 +00:00
|
|
|
= render 'projects/base/submenu'
|