2017-07-12 04:35:53 -04:00
|
|
|
- breadcrumb_title "Pipelines"
|
2018-04-16 06:22:34 -04:00
|
|
|
- page_title = s_("Pipeline|Run Pipeline")
|
2016-04-12 10:16:39 -04:00
|
|
|
|
|
|
|
%h3.page-title
|
2018-04-16 06:22:34 -04:00
|
|
|
= s_("Pipeline|Run Pipeline")
|
2016-04-12 10:16:39 -04:00
|
|
|
%hr
|
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
= form_for @pipeline, as: :pipeline, url: project_pipelines_path(@project), html: { id: "new-pipeline-form", class: "js-new-pipeline-form js-requires-input" } do |f|
|
2016-05-18 14:02:10 -04:00
|
|
|
= form_errors(@pipeline)
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-17 13:24:25 -04:00
|
|
|
= f.label :ref, s_('Pipeline|Run on'), class: 'col-form-label col-sm-2'
|
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',
|
2018-04-16 06:22:34 -04:00
|
|
|
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: s_("Pipeline|Search branches"),
|
2017-01-03 11:31:43 -05:00
|
|
|
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
|
2018-04-17 13:24:25 -04:00
|
|
|
.form-text.text-muted
|
2018-04-16 06:22:34 -04:00
|
|
|
= s_("Pipeline|Existing branch name, tag")
|
2016-04-12 10:16:39 -04:00
|
|
|
.form-actions
|
2018-04-16 06:22:34 -04:00
|
|
|
= f.submit s_('Pipeline|Run pipeline'), class: 'btn btn-success', tabindex: 3
|
|
|
|
= link_to 'Cancel', project_pipelines_path(@project), class: 'btn btn-default pull-right'
|
2016-04-12 10:16:39 -04:00
|
|
|
|
2018-02-28 17:59:50 -05:00
|
|
|
-# haml-lint:disable InlineJavaScript
|
2017-07-25 06:12:30 -04:00
|
|
|
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe
|