2017-07-12 08:35:53 +00:00
- breadcrumb_title "Pipelines"
2018-09-01 01:25:28 +00:00
- page_title s_("Pipeline|Run Pipeline")
2018-04-30 21:24:47 +00:00
- settings_link = link_to _('CI/CD settings'), project_settings_ci_cd_path(@project)
2016-04-12 14:16:39 +00:00
%h3.page-title
2018-04-16 10:22:34 +00:00
= s_("Pipeline|Run Pipeline")
2016-04-12 14:16:39 +00:00
%hr
2018-04-12 20:11:22 +00: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 18:02:10 +00:00
= form_errors(@pipeline)
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-30 21:24:47 +00:00
.col-sm-12
2018-07-20 06:15:14 +00:00
= f.label :ref, s_('Pipeline|Create for'), class: 'col-form-label'
2017-01-03 16:31:43 +00:00
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
= dropdown_tag(params[:ref] || @project.default_branch,
2017-05-11 15:47:44 +00:00
options: { toggle_class: 'js-branch-select wide git-revision-dropdown-toggle',
2018-04-16 10:22:34 +00:00
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: s_("Pipeline|Search branches"),
2017-01-03 16:31:43 +00:00
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
2018-04-17 17:24:25 +00:00
.form-text.text-muted
2018-04-30 21:24:47 +00:00
= s_("Pipeline|Existing branch name or tag")
.col-sm-12.prepend-top-10.js-ci-variable-list-section
2018-05-03 17:10:57 +00:00
%label
2018-04-30 21:24:47 +00:00
= s_('Pipeline|Variables')
%ul.ci-variable-list
= render 'ci/variables/variable_row', form_field: 'pipeline', only_key_value: true
2018-05-08 15:49:30 +00:00
.form-text.text-muted
2018-05-03 17:10:57 +00:00
= (s_("Pipeline|Specify variable values to be used in this run. The values specified in %{settings_link} will be used by default.") % {settings_link: settings_link}).html_safe
2018-04-30 21:24:47 +00:00
2016-04-12 14:16:39 +00:00
.form-actions
2018-04-30 21:24:47 +00:00
= f.submit s_('Pipeline|Create pipeline'), class: 'btn btn-success js-variables-save-button', tabindex: 3
2018-05-29 23:54:05 +00:00
= link_to 'Cancel', project_pipelines_path(@project), class: 'btn btn-default float-right'
2016-04-12 14:16:39 +00:00
2018-02-28 22:59:50 +00:00
-# haml-lint:disable InlineJavaScript
2017-07-25 10:12:30 +00:00
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe