Skip to content
Snippets Groups Projects
Commit 5d5274f6 authored by Mark M. Florida's avatar Mark M. Florida
Browse files

Site setup YAML file.

parent e7343558
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,12 @@ initialSetup: ...@@ -2,8 +2,12 @@ initialSetup:
kind: panel.multiForm kind: panel.multiForm
name: initialSetup name: initialSetup
label: XNAT Initial Setup label: XNAT Initial Setup
#method: POST method: POST
action: '#!' action: /xapi/siteConfig/batch
contentType: json
load:
lookup: XNAT.data.siteConfig
refresh: /xapi/siteConfig
contents: contents:
setupMessage: setupMessage:
...@@ -48,7 +52,11 @@ initialSetup: ...@@ -48,7 +52,11 @@ initialSetup:
label: Site URL label: Site URL
value: '' value: ''
placeholder: localhost placeholder: localhost
description: '' description: >
The address you want visible to users in emails, and other external links. This should be a
functional address (i.e. if the user pasted this address in their web browser, they should
come to the site). localhost only works if the web browser is located on the same machine.
You are required to guarantee that this address is functional for reaching the site.
validation: required url validation: required url
adminEmail: adminEmail:
...@@ -77,7 +85,7 @@ initialSetup: ...@@ -77,7 +85,7 @@ initialSetup:
archiveRootPath: archiveRootPath:
kind: panel.input.text kind: panel.input.text
name: archivePath name: archiveRootPath
label: Archive Location label: Archive Location
size: 50 size: 50
value: '' value: ''
...@@ -144,6 +152,7 @@ initialSetup: ...@@ -144,6 +152,7 @@ initialSetup:
label: Host label: Host
value: ?? XNAT.data.siteConfig.smtpServer.host value: ?? XNAT.data.siteConfig.smtpServer.host
placeholder: localhost placeholder: localhost
validation: required
port: port:
kind: panel.input.number kind: panel.input.number
...@@ -151,6 +160,7 @@ initialSetup: ...@@ -151,6 +160,7 @@ initialSetup:
label: Port label: Port
value: ?? XNAT.data.siteConfig.smtpServer.port value: ?? XNAT.data.siteConfig.smtpServer.port
placeholder: 25 placeholder: 25
validation: required number
username: username:
kind: panel.input.text kind: panel.input.text
...@@ -169,3 +179,25 @@ initialSetup: ...@@ -169,3 +179,25 @@ initialSetup:
name: protocol name: protocol
label: Protocol label: Protocol
value: ?? XNAT.data.siteConfig.smtpServer.protocol value: ?? XNAT.data.siteConfig.smtpServer.protocol
mailServerProperties:
kind: panel.subhead
text: Mail Server Settings
smtpAuth:
kind: panel.input.checkbox
name: mail.smtp.auth
label: SMTP Auth?
value: ?? XNAT.data.siteConfig.smtpServer['mail.smtp.auth']
smtpStartTls:
kind: panel.input.checkbox
name: mail.smtp.starttls.enable
label: Smart TLS?
value: ?? XNAT.data.siteConfig.smtpServer['mail.smtp.starttls.enable']
smtpSSLTrust:
kind: panel.input.text
name: mail.smtp.ssl.trust
label: SSL Trust
value: ?? XNAT.data.siteConfig.smtpServer['mail.smtp.ssl.trust']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment