2014-01-21 04:51:49 +00:00
|
|
|
- set_meta_tags title: [title_object(@platform), t('layout.mass_builds.new')]
|
2013-06-04 20:59:08 +01:00
|
|
|
|
|
|
|
= render 'platforms/base/submenu'
|
|
|
|
= render 'platforms/base/sidebar'
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
= form_for [@platform, @mass_build], html: { class: 'form mass_build', method: :post } do |f|
|
2013-06-04 20:59:08 +01:00
|
|
|
%section.left
|
|
|
|
%h3=t('layout.mass_builds.repositories')
|
|
|
|
- @platform.repositories.each do |rep|
|
|
|
|
.both
|
2014-01-21 04:51:49 +00:00
|
|
|
= check_box_tag "repositories[]", rep.id, (params[:repositories]||[]).include?(rep.id.to_s), id: "repositories_#{rep.id}", href: "#{projects_list_platform_repository_path(@platform, rep)}?text=true"
|
2013-06-04 20:59:08 +01:00
|
|
|
= label_tag "repositories_#{rep.id}", rep.name
|
|
|
|
%h3=t('layout.mass_builds.projects_list')
|
|
|
|
= f.text_area :projects_list
|
|
|
|
%br
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.submit t('layout.projects.build_button'), data: {'disable-with' => t('layout.processing')}
|
2013-06-04 20:59:08 +01:00
|
|
|
%section.right
|
|
|
|
%h3= t("activerecord.attributes.build_list.arch")
|
|
|
|
- Arch.recent.each do |arch|
|
|
|
|
.lefter
|
2014-06-26 20:51:21 +01:00
|
|
|
= check_box_tag "arches[]", arch.id, @mass_build.arches.include?(arch.id.to_s), id: "arches_#{arch.id}"
|
2013-06-04 20:59:08 +01:00
|
|
|
= label_tag "arches_#{arch.id}", arch.name
|
|
|
|
.both
|
|
|
|
- if @platform.personal?
|
|
|
|
%h3= t('activerecord.attributes.build_list.build_for_platform')
|
|
|
|
= f.collection_select :build_for_platform_id, Platform.main, :id, :name
|
|
|
|
.both
|
2013-08-02 13:53:56 +01:00
|
|
|
= hidden_field_tag :autocomplete_extra_repos_path,
|
2014-01-21 04:51:49 +00:00
|
|
|
"#{autocomplete_extra_repositories_autocompletes_path}?#{{platform_id: @mass_build.save_to_platform.try(:id)}.to_param}"
|
2013-06-06 19:57:36 +01:00
|
|
|
= render 'shared/autocomplete_form',
|
2014-01-21 04:51:49 +00:00
|
|
|
field: :extra_repositories,
|
|
|
|
field_class: Repository,
|
|
|
|
placeholder: 'uxteam_personal',
|
|
|
|
subject: @mass_build,
|
|
|
|
autocomplete_path: autocomplete_extra_repositories_autocompletes_path
|
2013-06-06 19:57:36 +01:00
|
|
|
= render 'shared/autocomplete_form',
|
2014-01-21 04:51:49 +00:00
|
|
|
field: :extra_build_lists,
|
|
|
|
field_class: BuildList,
|
|
|
|
placeholder: '1000000',
|
|
|
|
subject: @mass_build,
|
|
|
|
autocomplete_path: autocomplete_extra_build_list_autocompletes_path
|
2013-06-04 20:59:08 +01:00
|
|
|
%h3= t("activerecord.attributes.build_list.preferences")
|
2014-05-23 21:29:24 +01:00
|
|
|
- %i(auto_publish increase_release_tag use_cached_chroot use_extra_tests).each do |field|
|
2013-09-18 20:01:02 +01:00
|
|
|
.both
|
|
|
|
= f.check_box field
|
|
|
|
= f.label field
|
2013-08-02 13:53:56 +01:00
|
|
|
.both
|