2014-10-28 19:20:23 +00:00
|
|
|
- set_meta_tags title: [title_object(@platform), t('layout.mass_builds.new')]
|
|
|
|
|
|
|
|
= render 'platforms/base/submenu'
|
|
|
|
|
2015-01-29 08:31:32 +00:00
|
|
|
.col-xs-12.col-md-10.col-md-offset-1
|
2014-10-28 19:20:23 +00:00
|
|
|
|
2014-11-18 15:58:39 +00:00
|
|
|
.row[ ng-controller = 'NewMassBuildController as newMassBuildCtrl'
|
|
|
|
ng-cloak = true ]
|
2014-10-28 19:20:23 +00:00
|
|
|
= simple_form_for @mass_build, url: platform_mass_builds_path(@platform) do |f|
|
2014-11-18 15:58:39 +00:00
|
|
|
.col-md-4.col-md-offset-2
|
|
|
|
= f.input :description, as: :text, input_html: { class: 'resize-vertical' }
|
|
|
|
|
|
|
|
b
|
|
|
|
= t('layout.mass_builds.repositories')
|
|
|
|
|
|
|
|
.checkbox ng-repeat = 'repo in newMassBuildCtrl.repositories'
|
|
|
|
label
|
|
|
|
input[ type = 'checkbox'
|
|
|
|
name = 'repositories[]'
|
|
|
|
ng-model = 'repo.checked'
|
|
|
|
ng-value = 'repo.id'
|
|
|
|
ng-disabled = 'newMassBuildCtrl.isDisabledRepo(repo)'
|
|
|
|
ng-click = 'newMassBuildCtrl.selectRepository(repo)' ]
|
|
|
|
| {{ repo.name }}
|
|
|
|
|
|
|
|
= f.input :projects_list, as: :text,
|
|
|
|
input_html: { class: 'resize-vertical',
|
|
|
|
rows: 20,
|
|
|
|
'ng-model' => 'newMassBuildCtrl.projects_list',
|
|
|
|
'ng-change' => 'newMassBuildCtrl.changeProjectsList()' }
|
|
|
|
|
|
|
|
.col-md-4
|
|
|
|
b
|
|
|
|
= t("activerecord.attributes.build_list.arch")
|
|
|
|
- Arch.recent.map do |arch|
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input[ type = 'checkbox'
|
|
|
|
name = 'arches[]'
|
|
|
|
value = arch.id
|
|
|
|
checked = @mass_build.arches.include?(arch.id.to_s) ]
|
|
|
|
= arch.name
|
|
|
|
|
|
|
|
- if @platform.personal?
|
2014-11-18 16:22:10 +00:00
|
|
|
= render 'shared/autocomplete_form',
|
2014-11-18 15:58:39 +00:00
|
|
|
field: :ExtraRepositories,
|
2014-11-18 16:22:10 +00:00
|
|
|
placeholder: 'uxteam_personal',
|
|
|
|
ctrl_as: 'newMassBuildCtrl'
|
2014-11-18 15:58:39 +00:00
|
|
|
|
2014-11-18 16:22:10 +00:00
|
|
|
= render 'shared/autocomplete_form',
|
2014-11-18 15:58:39 +00:00
|
|
|
field: :ExtraMassBuilds,
|
2014-11-18 16:22:10 +00:00
|
|
|
placeholder: '1000',
|
|
|
|
ctrl_as: 'newMassBuildCtrl'
|
2014-11-18 15:58:39 +00:00
|
|
|
|
2014-11-18 16:22:10 +00:00
|
|
|
= render 'shared/autocomplete_form',
|
2014-11-18 15:58:39 +00:00
|
|
|
field: :ExtraBuildLists,
|
2014-11-18 16:22:10 +00:00
|
|
|
placeholder: '1000000',
|
|
|
|
ctrl_as: 'newMassBuildCtrl'
|
2014-11-18 15:58:39 +00:00
|
|
|
|
|
|
|
h3= t('activerecord.attributes.build_list.preferences')
|
|
|
|
|
|
|
|
= f.input :auto_publish_status, collection: auto_publish_statuses
|
|
|
|
|
|
|
|
- %i(auto_create_container increase_release_tag include_testing_subrepository use_cached_chroot use_extra_tests).each do |field|
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
= f.check_box field
|
|
|
|
= MassBuild.human_attribute_name field
|
|
|
|
|
|
|
|
= f.input :external_nodes, collection: external_nodes, include_blank: true
|
|
|
|
|
|
|
|
= f.button :submit, t('layout.projects.build_button'),
|
|
|
|
data: {'disable-with' => t('layout.processing')}
|
|
|
|
|
|
|
|
- content_for :additional_scripts do
|
|
|
|
= render 'init_service.js.erb'
|