debian-mirror-gitlab/app/views/projects/environments/_form.html.haml

22 lines
906 B
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
.row.gl-mt-3.gl-mb-3
2016-09-13 17:45:13 +05:30
.col-lg-3
2020-06-23 00:09:42 +05:30
%h4.gl-mt-0
2019-02-15 15:39:39 +05:30
= _("Environments")
2016-09-13 17:45:13 +05:30
%p
2020-07-28 23:09:34 +05:30
- link_to_read_more = link_to(_("More information"), help_page_path("ci/environments/index.md"))
2019-02-15 15:39:39 +05:30
= _("Environments allow you to track deployments of your application %{link_to_read_more}.").html_safe % { link_to_read_more: link_to_read_more }
2016-09-13 17:45:13 +05:30
2020-10-24 23:57:45 +05:30
= form_for [@project, @environment], html: { class: 'col-lg-9' } do |f|
2016-09-13 17:45:13 +05:30
= form_errors(@environment)
.form-group
2019-02-15 15:39:39 +05:30
= f.label :name, _('Name'), class: 'label-bold'
2016-09-13 17:45:13 +05:30
= f.text_field :name, required: true, class: 'form-control'
.form-group
2019-02-15 15:39:39 +05:30
= f.label :external_url, _('External URL'), class: 'label-bold'
2016-09-13 17:45:13 +05:30
= f.url_field :external_url, class: 'form-control'
.form-actions
2021-04-29 21:17:54 +05:30
= f.submit _('Save'), class: 'gl-button btn btn-confirm'
2021-01-29 00:20:46 +05:30
= link_to _('Cancel'), project_environments_path(@project), class: 'gl-button btn btn-cancel'