Categories

Sub-divide spaces into categories which can contain documents with restricted access.

{{input id="new-category-name" type='text' class="form-control mousetrap" placeholder="Category name" value=newCategory}}
{{#each category as |cat|}}
{{#if cat.editMode}}
{{focus-input id=(concat 'edit-category-' cat.id) type="text" value=cat.category class="form-control"}}
{{else}}
{{cat.category}}
{{cat.documents}} {{if (eq cat.documents 1) 'document' 'documents' }}, {{cat.users}} {{if (eq cat.users 1) 'person' 'people' }}
{{/if}}
{{#if cat.editMode}} {{else}}
security
edit
delete
{{/if}}
{{else}}
No categories
{{/each}}
{{#ui/ui-dialog title="Set Cateogory Access" confirmCaption="Save" buttonType="btn-outline-success" show=showCategoryAccess onAction=(action 'onGrantAccess')}}

Select who can view documents within category

{{ui/ui-list-picker items=categoryUsers nameField='fullname' singleSelect=false}} {{/ui/ui-dialog}}