BigW Consortium Gitlab

_form.html.haml 1.18 KB
Newer Older
1
= form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'form-horizontal fieldset-form' } do |f|
2 3 4 5 6
  - if @domain.errors.any?
    #error_explanation
      .alert.alert-danger
        - @domain.errors.full_messages.each do |msg|
          %p= msg
7

8 9 10 11 12
  .form-group
    = f.label :domain, class: 'control-label' do
      Domain
    .col-sm-10
      = f.text_field :domain, required: true, autocomplete: 'off', class: 'form-control'
13

Kamil Trzcinski committed
14
  - if Gitlab.config.pages.external_https
15 16 17 18
    .form-group
      = f.label :certificate, class: 'control-label' do
        Certificate (PEM)
      .col-sm-10
19
        = f.text_area :certificate, rows: 5, class: 'form-control'
20
        %span.help-inline Upload a certificate for your domain with all intermediates
21

22 23 24 25
    .form-group
      = f.label :key, class: 'control-label' do
        Key (PEM)
      .col-sm-10
26 27
        = f.text_area :key, rows: 5, class: 'form-control'
        %span.help-inline Upload a private key for your certificate
28 29 30 31 32 33 34
  - else
    .nothing-here-block
      Support for custom certificates is disabled.
      Ask your system's administrator to enable it.

  .form-actions
    = f.submit 'Create New Domain', class: "btn btn-save"