BigW Consortium Gitlab

_form.html.haml 859 Bytes
Newer Older
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
      Environments allow you to track deployments of your application
      = succeed "." do
        = link_to "Read more about environments", help_page_path("ci/environments")

  = 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-light'
      = f.text_field :name, required: true, class: 'form-control'
    .form-group
      = f.label :external_url, 'External URL', class: 'label-light'
      = f.url_field :external_url, class: 'form-control'

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