2017-07-12 04:35:53 -04:00
|
|
|
- breadcrumb_title "Pipelines"
|
2016-04-12 10:16:39 -04:00
|
|
|
- page_title "New Pipeline"
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
New Pipeline
|
|
|
|
%hr
|
|
|
|
|
2017-06-29 13:06:35 -04:00
|
|
|
= form_for @pipeline, as: :pipeline, url: project_pipelines_path(@project), html: { id: "new-pipeline-form", class: "form-horizontal js-new-pipeline-form js-requires-input" } do |f|
|
2016-05-18 14:02:10 -04:00
|
|
|
= form_errors(@pipeline)
|
2016-04-12 10:16:39 -04:00
|
|
|
.form-group
|
2016-05-18 18:01:42 -04:00
|
|
|
= f.label :ref, 'Create for', class: 'control-label'
|
2016-04-12 10:16:39 -04:00
|
|
|
.col-sm-10
|
2017-01-03 11:31:43 -05:00
|
|
|
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
|
|
|
|
= dropdown_tag(params[:ref] || @project.default_branch,
|
2017-05-11 11:47:44 -04:00
|
|
|
options: { toggle_class: 'js-branch-select wide git-revision-dropdown-toggle',
|
|
|
|
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: "Search branches",
|
2017-01-03 11:31:43 -05:00
|
|
|
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
|
2016-04-12 10:16:39 -04:00
|
|
|
.help-block Existing branch name, tag
|
|
|
|
.form-actions
|
2016-05-18 18:01:42 -04:00
|
|
|
= f.submit 'Create pipeline', class: 'btn btn-create', tabindex: 3
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Cancel', project_pipelines_path(@project), class: 'btn btn-cancel'
|
2016-04-12 10:16:39 -04:00
|
|
|
|
2017-07-25 06:12:30 -04:00
|
|
|
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe
|