2014-10-28 19:20:23 +00:00
|
|
|
- set_meta_tags title: [title_object(@platform), t('layout.mass_builds.new')]
|
|
|
|
|
|
|
|
= render 'platforms/base/submenu'
|
|
|
|
|
2014-10-29 21:18:49 +00:00
|
|
|
.container.col-md-offset-2.col-md-8
|
2014-10-28 19:20:23 +00:00
|
|
|
|
|
|
|
.row
|
|
|
|
= simple_form_for @mass_build, url: platform_mass_builds_path(@platform) do |f|
|
|
|
|
.col-md-6
|
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
b
|
|
|
|
= t('layout.mass_builds.repositories')
|
|
|
|
- @platform.repositories.each do |rep|
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input[type = "checkbox"
|
|
|
|
value = rep.id
|
|
|
|
name = 'repositories[]'
|
|
|
|
checked = @mass_build.repositories.include?(rep.id.to_s)]
|
|
|
|
= rep.name
|
|
|
|
/ = 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"
|
|
|
|
/ = label_tag "repositories_#{rep.id}", rep.name
|
|
|
|
.col-md-6
|
|
|
|
= f.input :projects_list, as: :text
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
= f.input :description, as: :text
|
|
|
|
|
|
|
|
.col-md-6
|
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
b
|
|
|
|
= t("activerecord.attributes.build_list.arch")
|
|
|
|
- Arch.recent.each do |arch|
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input[type="checkbox" value=arch.id name='arches[]'
|
|
|
|
checked=@mass_build.arches.include?(arch.id.to_s)]
|
|
|
|
= arch.name
|
|
|
|
.col-md-6
|
|
|
|
- if @platform.personal?
|
2014-10-28 23:04:45 +00:00
|
|
|
= f.input :build_for_platform_id, collection: platform_options
|
2014-10-28 19:20:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
= f.button :submit, t('layout.projects.build_button')
|
|
|
|
|
|
|
|
/ = form_for [@platform, @mass_build], html: { class: 'form mass_build', method: :post } do |f|
|
|
|
|
/ %section.left
|
|
|
|
/ %h3=t('layout.mass_builds.repositories')
|
|
|
|
/ - @platform.repositories.each do |rep|
|
|
|
|
/ .both
|
|
|
|
/ = 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"
|
|
|
|
/ = label_tag "repositories_#{rep.id}", rep.name
|
|
|
|
/ %h3=t('activerecord.attributes.mass_build.description')
|
|
|
|
/ = f.text_area :description
|
|
|
|
/ %br
|
|
|
|
/ %h3=t('layout.mass_builds.projects_list')
|
|
|
|
/ = f.text_area :projects_list
|
|
|
|
/ %br
|
|
|
|
/ = f.submit t('layout.projects.build_button'), data: {'disable-with' => t('layout.processing')}
|
|
|
|
/ %section.right
|
|
|
|
/ %h3= t("activerecord.attributes.build_list.arch")
|
|
|
|
/ - Arch.recent.each do |arch|
|
|
|
|
/ .lefter
|
|
|
|
/ = check_box_tag "arches[]", arch.id, @mass_build.arches.include?(arch.id.to_s), id: "arches_#{arch.id}"
|
|
|
|
/ = 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
|
|
|
|
/ = hidden_field_tag :autocomplete_extra_repos_path,
|
|
|
|
/ "#{autocomplete_extra_repositories_autocompletes_path}?#{{platform_id: @mass_build.save_to_platform.try(:id)}.to_param}"
|
|
|
|
/ = render 'shared/autocomplete_form',
|
|
|
|
/ field: :extra_repositories,
|
|
|
|
/ field_class: Repository,
|
|
|
|
/ placeholder: 'uxteam_personal',
|
|
|
|
/ subject: @mass_build,
|
|
|
|
/ autocomplete_path: autocomplete_extra_repositories_autocompletes_path
|
|
|
|
/ = render 'shared/autocomplete_form',
|
|
|
|
/ field: :extra_mass_builds,
|
|
|
|
/ field_class: MassBuild,
|
|
|
|
/ placeholder: '1000000',
|
|
|
|
/ subject: @mass_build,
|
|
|
|
/ autocomplete_path: autocomplete_extra_mass_build_autocompletes_path
|
|
|
|
/ = render 'shared/autocomplete_form',
|
|
|
|
/ field: :extra_build_lists,
|
|
|
|
/ field_class: BuildList,
|
|
|
|
/ placeholder: '1000000',
|
|
|
|
/ subject: @mass_build,
|
|
|
|
/ autocomplete_path: autocomplete_extra_build_list_autocompletes_path
|
|
|
|
/ %h3= t("activerecord.attributes.build_list.preferences")
|
|
|
|
/ .both
|
|
|
|
/ = f.select :auto_publish_status, auto_publish_statuses
|
|
|
|
/ = f.label :auto_publish_status
|
|
|
|
/ - %i(auto_create_container increase_release_tag include_testing_subrepository use_cached_chroot use_extra_tests).each do |field|
|
|
|
|
/ .both
|
|
|
|
/ = f.check_box field
|
|
|
|
/ = f.label field
|
|
|
|
|
|
|
|
/ .both
|
|
|
|
/ = f.select :external_nodes, external_nodes, include_blank: true
|
|
|
|
/ = f.label :external_nodes
|
|
|
|
|
|
|
|
/ .both
|