Skip to content

Commit b36c87f

Browse files
committed
Add initial placeholder view for custom domains
1 parent f4c7f30 commit b36c87f

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-#
2+
In future this will be a form (or maybe a whole separate
3+
page). For now it's read only.
4+
5+
- if feature_enabled?(:custom_domains)
6+
= render layout: 'field_wrapper' do
7+
.form-text
8+
%h5.mt-4 Custom Domain
9+
.ms-3
10+
= render layout: 'field_wrapper' do
11+
= f.label :domain, 'Domain:'
12+
= site.custom_domain&.domain || 'none'
13+
= render layout: 'field_wrapper' do
14+
= f.label :active, 'Status:'
15+
= site.custom_domain&.status

rails/app/views/sites/_form.html.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
= render 'site_common/allow_in_iframe', f:
5353
= render 'save_method_prefs', f:
5454
= render 'skip_etag_check', f:
55+
= render 'custom_domain', site: @site, f:
5556

5657
= render layout: 'field_wrapper', locals: { pt: 'pt-5' } do
5758
= f.submit @site.new_record? ? 'Create' : 'Update', class: 'btn btn-primary'

0 commit comments

Comments
 (0)