2016-04-12 10:16:39 -04:00
|
|
|
- page_title "New Pipeline"
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
New Pipeline
|
|
|
|
%hr
|
|
|
|
|
2016-05-18 18:01:42 -04:00
|
|
|
= form_for @pipeline, as: :pipeline, url: namespace_project_pipelines_path(@project.namespace, @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
|
2016-07-07 05:02:57 -04:00
|
|
|
= f.text_field :ref, required: true, tabindex: 2, class: 'form-control js-branch-name ui-autocomplete-input', autocomplete: :false, id: :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
|
2016-04-12 13:57:22 -04:00
|
|
|
= link_to 'Cancel', namespace_project_pipelines_path(@project.namespace, @project), class: 'btn btn-cancel'
|
2016-04-12 10:16:39 -04:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
var availableRefs = #{@project.repository.ref_names.to_json};
|
|
|
|
|
2016-05-16 17:34:42 -04:00
|
|
|
new NewBranchForm($('.js-new-pipeline-form'), availableRefs)
|