mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
Applied the new master layout and UI controls to the following space admin screens: 1. General options. 2. Deletion. 3. Permissions. 4. Content blocks. Co-Authored-By: Harvey Kandola <harvey@documize.com>
36 lines
1.3 KiB
Handlebars
36 lines
1.3 KiB
Handlebars
{{layout/logo-heading
|
|
title="General Options"
|
|
desc="Set options to control how people interact with this space"
|
|
icon=constants.Icon.Settings}}
|
|
|
|
<form>
|
|
<div class="form-group">
|
|
<label>Space Name</label>
|
|
{{focus-input id="space-name" type="text" value=spaceName class=(if hasNameError "form-control is-invalid" "form-control") placeholder="Space name" autocomplete="off"}}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Space Type</label>
|
|
{{ui/ui-select id="spacetypes-dropdown" content=spaceTypeOptions optionValuePath="id" optionLabelPath="label" selection=spaceType action=(action "onSetSpaceType")}}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Enable Like/Dislike Feedback</label>
|
|
{{x-toggle value=allowLikes size="medium" theme="light" onToggle=(action (mut allowLikes))}}
|
|
</div>
|
|
|
|
{{#if allowLikes}}
|
|
<div class="form-group">
|
|
<label>Feedback Prompt</label>
|
|
{{input type="text" id="space-likes-prompt" class="form-control" placeholder="Enter prompt asking for user feedback" value=likes}}
|
|
<small class="form-text text-muted">Specify the prompt, e.g. Did this help you? Was this helpful? Did you find what you needed?</small>
|
|
</div>
|
|
{{/if}}
|
|
</form>
|
|
|
|
{{ui/ui-button
|
|
color=constants.Color.Green
|
|
icon=constants.Icon.Settings
|
|
label=constants.Label.Save
|
|
light=true
|
|
onClick=(action 'onSave')}}
|