Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_form.html.haml « environments « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbd5c54ceccec2168de9b936ca3109fcb6a7604a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = _("Environments")
    %p
      - 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 }

  = form_for [@project.namespace.becomes(Namespace), @project, @environment], html: { class: 'col-lg-9' } do |f|
    = form_errors(@environment)

    .form-group
      = f.label :name, _('Name'), class: 'label-bold'
      = f.text_field :name, required: true, class: 'form-control'
    .form-group
      = f.label :external_url, _('External URL'), class: 'label-bold'
      = f.url_field :external_url, class: 'form-control'

    .form-actions
      = f.submit _('Save'), class: 'btn btn-save'
      = link_to _('Cancel'), project_environments_path(@project), class: 'btn btn-cancel'