<div class="row">
	<div class="col">
		<div class="view-customize">
			<h1 class="admin-heading">Instance Settings</h1>
			<h2 class="sub-heading">Settings applicable to the Documize instance</h2>
		</div>
	</div>
</div>

<div class="view-customize">
	<form class="mt-5">
		<div class="form-group row">
			<label for="siteTitle" class="col-sm-2 col-form-label">Instance Name</label>
			<div class="col-sm-10">
				{{focus-input id="siteTitle" type="text" value=model.general.title class=(if hasTitleInputError 'form-control is-invalid' 'form-control')}}
				<small class="form-text text-muted">Provide short title for this Documize instance</small>
			</div>
		</div>
		<div class="form-group row">
			<label id="siteMessage" class="col-sm-2 col-form-label">Message</label>
			<div class="col-sm-10">
				{{textarea id="siteMessage" rows="3" value=model.general.message class=(if hasMessageInputError 'form-control is-invalid' 'form-control')}}
				<small class="form-text text-muted">Provide short message explaining this Documize instance</small>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label">Anonymous Access</label>
			<div class="col-sm-10">
				<div class="form-check">
					<input type="checkbox" class="form-check-input" id="allowAnonymousAccess" checked= {{model.general.allowAnonymousAccess}}
					/>
					<label class="form-check-label" for="allowAnonymousAccess">
						Make content marked as "Everyone" available to anonymous users
					</label>
				</div>
			</div>
		</div>
		<div class="form-group row">
			<label for="conversionEndpoint" class="col-sm-2 col-form-label">Conversion Service URL</label>
			<div class="col-sm-10">
				{{input id="conversionEndpoint" type="text" value=model.general.conversionEndpoint class=(if hasConversionEndpointInputError 'form-control is-invalid' 'form-control')}}
				<small class="form-text text-muted">
					Endpoint for handling import/export (e.g. https://api.documize.com,
					<a href="https://docs.documize.com/s/WNEpptWJ9AABRnha/administration-guides/d/WO0pt_MXigAB6sJ7/general-options">view documentation</a>)
				</small>
			</div>
		</div>
		<div class="btn btn-success mt-4" {{action 'save'}}>Save</div>
	</form>
</div>