2017-09-10 17:25:29 +05:30
|
|
|
- breadcrumb_title "Pipelines"
|
2016-06-02 11:05:42 +05:30
|
|
|
- page_title "New Pipeline"
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
New Pipeline
|
|
|
|
%hr
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
= 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-06-02 11:05:42 +05:30
|
|
|
= form_errors(@pipeline)
|
|
|
|
.form-group
|
|
|
|
= f.label :ref, 'Create for', class: 'control-label'
|
|
|
|
.col-sm-10
|
2017-08-17 22:00:37 +05:30
|
|
|
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
|
|
|
|
= dropdown_tag(params[:ref] || @project.default_branch,
|
2017-09-10 17:25:29 +05:30
|
|
|
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-08-17 22:00:37 +05:30
|
|
|
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
|
2016-06-02 11:05:42 +05:30
|
|
|
.help-block Existing branch name, tag
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create pipeline', class: 'btn btn-create', tabindex: 3
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Cancel', project_pipelines_path(@project), class: 'btn btn-cancel'
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
-# haml-lint:disable InlineJavaScript
|
2017-09-10 17:25:29 +05:30
|
|
|
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe
|