2016-09-13 17:45:13 +05:30
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
2019-02-13 22:33:31 +05:30
|
|
|
= _("Environments")
|
2016-09-13 17:45:13 +05:30
|
|
|
%p
|
2019-02-13 22:33:31 +05:30
|
|
|
- link_to_read_more = link_to(_("Read more about environments"), help_page_path("ci/environments"))
|
|
|
|
= _("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
|
|
|
|
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @environment], html: { class: 'col-lg-9' } do |f|
|
|
|
|
= form_errors(@environment)
|
|
|
|
|
|
|
|
.form-group
|
2019-02-13 22:33:31 +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-13 22:33:31 +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
|
2019-02-13 22:33:31 +05:30
|
|
|
= f.submit _('Save'), class: 'btn btn-save'
|
|
|
|
= link_to _('Cancel'), project_environments_path(@project), class: 'btn btn-cancel'
|