[#369] new build list: change grids
This commit is contained in:
parent
9c228e5c36
commit
7b9231a452
|
@ -3,62 +3,63 @@
|
||||||
.col-xs-12.col-sm-4
|
.col-xs-12.col-sm-4
|
||||||
= render 'projects/build_lists/new_build/include_repos'
|
= render 'projects/build_lists/new_build/include_repos'
|
||||||
|
|
||||||
.col-xs-12.col-sm-4
|
.col-xs-12.col-sm-8
|
||||||
%h4= t 'activerecord.attributes.build_list.save_to_repository'
|
.row
|
||||||
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.save_to_repository',
|
.col-xs-12.col-sm-6
|
||||||
'ng-options' => 'r.name for r in newBuildCtrl.save_to_repositories track by r.id',
|
%h4= t 'activerecord.attributes.build_list.save_to_repository'
|
||||||
'ng-change' => 'newBuildCtrl.selectSaveToRepository()',
|
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.save_to_repository',
|
||||||
name: 'build_list[save_to_repository_id]',
|
'ng-options' => 'r.name for r in newBuildCtrl.save_to_repositories track by r.id',
|
||||||
required: true }
|
'ng-change' => 'newBuildCtrl.selectSaveToRepository()',
|
||||||
|
name: 'build_list[save_to_repository_id]',
|
||||||
|
required: true }
|
||||||
|
|
||||||
%h4= t 'activerecord.attributes.build_list.project_version'
|
%h4= t 'activerecord.attributes.build_list.project_version'
|
||||||
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.project_version',
|
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.project_version',
|
||||||
'ng-options' => 'v.name group by v.kind for v in newBuildCtrl.project_versions track by v.name',
|
'ng-options' => 'v.name group by v.kind for v in newBuildCtrl.project_versions track by v.name',
|
||||||
'ng-change' => 'newBuildCtrl.selectProjectVersion()',
|
'ng-change' => 'newBuildCtrl.selectProjectVersion()',
|
||||||
'ng-value' => 'newBuildCtrl.project_version',
|
'ng-value' => 'newBuildCtrl.project_version',
|
||||||
name: 'build_list[project_version]',
|
name: 'build_list[project_version]',
|
||||||
required: true }
|
required: true }
|
||||||
|
|
||||||
%h4= t 'activerecord.attributes.build_list.arch'
|
%h4= t 'activerecord.attributes.build_list.arch'
|
||||||
.checkbox{ 'ng-repeat' => 'arch in newBuildCtrl.arches' }
|
.checkbox{ 'ng-repeat' => 'arch in newBuildCtrl.arches' }
|
||||||
%label
|
%label
|
||||||
%input{ type: 'checkbox',
|
%input{ type: 'checkbox',
|
||||||
'ng-model' => 'arch.checked',
|
'ng-model' => 'arch.checked',
|
||||||
'ng-value' => 'arch.id',
|
'ng-value' => 'arch.id',
|
||||||
name: 'arches[]' }
|
name: 'arches[]' }
|
||||||
{{ arch.name }}
|
{{ arch.name }}
|
||||||
|
|
||||||
%h4.offset10= t 'activerecord.attributes.build_list.update_type'
|
%h4.offset10= t 'activerecord.attributes.build_list.update_type'
|
||||||
- selected = params[:build_list].try(:[], :update_type) ? {selected: params[:build_list][:update_type]} : {}
|
- selected = params[:build_list].try(:[], :update_type) ? {selected: params[:build_list][:update_type]} : {}
|
||||||
= f.select :update_type, BuildList::UPDATE_TYPES, selected, class: 'form-control boffset10'
|
= f.select :update_type, BuildList::UPDATE_TYPES, selected, class: 'form-control boffset10'
|
||||||
|
|
||||||
%div{ 'ng-hide' => 'newBuildCtrl.is_build_for_main_platform' }
|
%div{ 'ng-hide' => 'newBuildCtrl.is_build_for_main_platform' }
|
||||||
= render 'shared/autocomplete_form',
|
= render 'shared/autocomplete_form',
|
||||||
field: :ExtraRepositories,
|
field: :ExtraRepositories,
|
||||||
placeholder: 'uxteam_personal',
|
placeholder: 'uxteam_personal',
|
||||||
ctrl_as: 'newBuildCtrl',
|
ctrl_as: 'newBuildCtrl',
|
||||||
hash: 'build_list'
|
hash: 'build_list'
|
||||||
|
|
||||||
= render 'shared/autocomplete_form',
|
= render 'shared/autocomplete_form',
|
||||||
field: :ExtraBuildLists,
|
field: :ExtraBuildLists,
|
||||||
placeholder: '1000000',
|
placeholder: '1000000',
|
||||||
ctrl_as: 'newBuildCtrl',
|
ctrl_as: 'newBuildCtrl',
|
||||||
hash: 'build_list'
|
hash: 'build_list'
|
||||||
|
.col-xs-12.col-sm-6
|
||||||
|
= render 'projects/build_lists/new_build/extra_params_and_preferences',
|
||||||
|
params: params,
|
||||||
|
f: f
|
||||||
|
|
||||||
.col-xs-12.col-sm-4
|
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?
|
||||||
= render 'projects/build_lists/new_build/extra_params_and_preferences',
|
|
||||||
params: params,
|
|
||||||
f: f
|
|
||||||
|
|
||||||
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
|
%hr
|
||||||
.col-sm-8
|
= button_tag type: :submit,
|
||||||
%hr
|
data: {'disable-with' => t('layout.processing')},
|
||||||
= button_tag type: :submit,
|
class: 'btn btn-primary btn-lg btn-block' do
|
||||||
data: {'disable-with' => t('layout.processing')},
|
%i.fa.fa-check
|
||||||
class: 'btn btn-primary btn-lg btn-block' do
|
= t('layout.projects.build_button')
|
||||||
%i.fa.fa-check
|
|
||||||
= t('layout.projects.build_button')
|
|
||||||
|
|
||||||
- content_for :additional_scripts do
|
- content_for :additional_scripts do
|
||||||
= render 'projects/build_lists/new_build/init_service.js.erb'
|
= render 'projects/build_lists/new_build/init_service.js.erb'
|
||||||
|
|
Loading…
Reference in New Issue