gitlab-org--gitlab-foss/app/views/projects/pipelines/new.html.haml

36 lines
1.8 KiB
Text
Raw Normal View History

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