2016-02-23 06:03:03 -05:00
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'form-horizontal fieldset-form' } do |f|
|
2016-02-10 09:06:31 -05:00
|
|
|
- if @domain.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
.alert.alert-danger
|
|
|
|
- @domain.errors.full_messages.each do |msg|
|
|
|
|
%p= msg
|
2016-02-09 12:06:55 -05:00
|
|
|
|
2016-02-10 09:06:31 -05:00
|
|
|
.form-group
|
|
|
|
= f.label :domain, class: 'control-label' do
|
|
|
|
Domain
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :domain, required: true, autocomplete: 'off', class: 'form-control'
|
2016-02-09 12:06:55 -05:00
|
|
|
|
2016-02-14 15:06:24 -05:00
|
|
|
- if Gitlab.config.pages.external_https
|
2016-02-10 09:06:31 -05:00
|
|
|
.form-group
|
|
|
|
= f.label :certificate, class: 'control-label' do
|
|
|
|
Certificate (PEM)
|
|
|
|
.col-sm-10
|
2016-02-15 09:01:42 -05:00
|
|
|
= f.text_area :certificate, rows: 5, class: 'form-control'
|
2016-02-10 09:06:31 -05:00
|
|
|
%span.help-inline Upload a certificate for your domain with all intermediates
|
2016-02-09 12:06:55 -05:00
|
|
|
|
2016-02-10 09:06:31 -05:00
|
|
|
.form-group
|
|
|
|
= f.label :key, class: 'control-label' do
|
|
|
|
Key (PEM)
|
|
|
|
.col-sm-10
|
2016-02-15 09:01:42 -05:00
|
|
|
= f.text_area :key, rows: 5, class: 'form-control'
|
|
|
|
%span.help-inline Upload a private key for your certificate
|
2016-02-10 09:06:31 -05:00
|
|
|
- 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"
|