[#369] new build list page: change grid
This commit is contained in:
parent
3ea1d09298
commit
47868205e5
|
@ -1,6 +0,0 @@
|
|||
-set_meta_tags title: [title_object(@project), t('layout.build_lists.new_header')]
|
||||
.container{ 'ng-controller' => 'NewBuildListController as newBuildCtrl', 'ng-cloak' => true }
|
||||
#new_form= render 'projects/build_lists/new_build/new_form', project: @project, build_list: @build_list
|
||||
%br
|
||||
= render 'projects/build_lists/new_build/last_build_lists', project: @project
|
||||
= render 'projects/base/submenu'
|
|
@ -0,0 +1,6 @@
|
|||
-set_meta_tags title: [title_object(@project), t('layout.build_lists.new_header')]
|
||||
.col-xs-12.col-lg-10.col-lg-offset-1 ng-controller = 'NewBuildListController as newBuildCtrl' ng-cloak = true
|
||||
#new_form== render 'projects/build_lists/new_build/new_form', project: @project, build_list: @build_list
|
||||
br
|
||||
== render 'projects/build_lists/new_build/last_build_lists', project: @project
|
||||
== render 'projects/base/submenu'
|
|
@ -1,11 +1,11 @@
|
|||
h3= t('activerecord.attributes.build_list.extra_params.label')
|
||||
h4= t('activerecord.attributes.build_list.extra_params.label')
|
||||
- BuildList::EXTRA_PARAMS.each do |field|
|
||||
- text = params[:build_list].try(:[], :extra_params).try(:[], field)
|
||||
= text_field_tag "build_list[extra_params][#{field}]", text,
|
||||
placeholder: t("activerecord.attributes.build_list.extra_params.#{field}"),
|
||||
class: 'form-control'
|
||||
|
||||
h3.offset10= t("activerecord.attributes.build_list.preferences")
|
||||
h4.offset10= t("activerecord.attributes.build_list.preferences")
|
||||
- selected = params[:build_list].try(:[], :auto_publish_status) ? {selected: params[:build_list][:auto_publish_status]} : {}
|
||||
.form-group
|
||||
= f.label :auto_publish_status
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
= form_for [@project, @build_list], html: { class: :form, method: :post } do |f|
|
||||
.row
|
||||
.col-md-4.col-md-offset-2
|
||||
.col-xs-12.col-sm-4
|
||||
= render 'projects/build_lists/new_build/include_repos'
|
||||
|
||||
.col-md-4
|
||||
.col-xs-12.col-sm-4
|
||||
%h4= t 'activerecord.attributes.build_list.save_to_repository'
|
||||
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.save_to_repository',
|
||||
'ng-options' => 'r.name for r in newBuildCtrl.save_to_repositories track by r.id',
|
||||
|
@ -45,6 +45,7 @@
|
|||
ctrl_as: 'newBuildCtrl',
|
||||
hash: 'build_list'
|
||||
|
||||
.col-xs-12.col-sm-4
|
||||
= render 'projects/build_lists/new_build/extra_params_and_preferences',
|
||||
params: params,
|
||||
f: f
|
||||
|
|
Loading…
Reference in New Issue