2018-06-05 14:04:14 +01:00
|
|
|
<div class="content-zone">
|
|
|
|
<div class="explainer-header explainer-gap">General options for this space</div>
|
|
|
|
<form>
|
2018-06-21 12:38:13 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Space Name</label>
|
2018-12-08 20:54:19 +00:00
|
|
|
{{focus-input id="space-name" type="text" value=spaceName class=(if hasNameError "form-control is-invalid" "form-control") placeholder="Space name" autocomplete="off"}}
|
2018-06-21 12:38:13 +01:00
|
|
|
</div>
|
|
|
|
|
2018-06-05 14:04:14 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Space Type</label>
|
2018-12-11 18:00:08 +00:00
|
|
|
{{ui/ui-select id="spacetypes-dropdown" content=spaceTypeOptions optionValuePath="id" optionLabelPath="label" selection=spaceType action=(action "onSetSpaceType")}}
|
2018-06-21 12:38:13 +01:00
|
|
|
<small class="form-text text-muted">Who can see this space?</small>
|
2018-06-05 14:04:14 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Content Liking</label>
|
|
|
|
{{#if allowLikes}}
|
2018-12-08 20:54:19 +00:00
|
|
|
{{input type="text" id="space-likes-prompt" class="form-control" placeholder="Enter prompt asking for user feedback" value=likes}}
|
2018-06-05 14:04:14 +01:00
|
|
|
<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 class="mt-4">
|
2018-12-08 20:54:19 +00:00
|
|
|
<button type="button" class="btn btn-outline-danger" onclick={{action "onSetLikes" false}}>Do not allow users to like content</button>
|
2018-06-05 14:04:14 +01:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div>
|
2018-12-08 20:54:19 +00:00
|
|
|
<button type="button" class="btn btn-outline-success" onclick={{action "onSetLikes" true}}>Allow users to like content</button>
|
2018-06-05 14:04:14 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-12-08 20:54:19 +00:00
|
|
|
<button type="button" class="btn btn-success mt-3" onclick={{action "onSave"}}>Save</button>
|
2018-06-05 14:04:14 +01:00
|
|
|
</div>
|