cd5bee0d44
In an effort to tackle #18437 this removes 2 of the jQuery UI plugins. Highlight & autocomplete, both used once in our code. Highlight was just removed easily, autocomplete was replaced with GL dropdown
25 lines
1.2 KiB
Text
25 lines
1.2 KiB
Text
- page_title "New Pipeline"
|
|
|
|
%h3.page-title
|
|
New Pipeline
|
|
%hr
|
|
|
|
= 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|
|
|
= form_errors(@pipeline)
|
|
.form-group
|
|
= f.label :ref, 'Create for', class: 'control-label'
|
|
.col-sm-10
|
|
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
|
|
= dropdown_tag(params[:ref] || @project.default_branch,
|
|
options: { toggle_class: 'js-branch-select wide',
|
|
filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search branches",
|
|
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
|
|
.help-block Existing branch name, tag
|
|
.form-actions
|
|
= f.submit 'Create pipeline', class: 'btn btn-create', tabindex: 3
|
|
= link_to 'Cancel', namespace_project_pipelines_path(@project.namespace, @project), class: 'btn btn-cancel'
|
|
|
|
:javascript
|
|
var availableRefs = #{@project.repository.ref_names.to_json};
|
|
|
|
new NewBranchForm($('.js-new-pipeline-form'), availableRefs)
|