2017-09-22 17:23:14 +01:00
|
|
|
<div class="back-to-space document-space">
|
|
|
|
<div class="caption">Space</div>
|
2017-09-21 15:48:00 +01:00
|
|
|
{{#link-to 'folder' folder.id folder.slug}}
|
2017-09-25 14:37:11 +01:00
|
|
|
<div class="regular-button button-nav">
|
2017-09-21 15:48:00 +01:00
|
|
|
<i class="material-icons">arrow_back</i>
|
|
|
|
<div class="name">{{folder.name}}</div>
|
|
|
|
</div>
|
|
|
|
{{/link-to}}
|
|
|
|
</div>
|
|
|
|
|
2017-09-22 17:23:14 +01:00
|
|
|
<div class="document-category">
|
|
|
|
<div class="caption">Category</div>
|
|
|
|
|
|
|
|
{{#each selectedCategories as |cat|}}
|
2017-10-06 13:59:58 -04:00
|
|
|
<div class="regular-button button-blue cursor-auto">{{cat.category}}</div>
|
2017-09-25 11:52:26 +01:00
|
|
|
{{else}}
|
|
|
|
{{#if canAddCategory}}
|
2017-09-26 16:30:16 +01:00
|
|
|
{{#unless canSelectCategory}}
|
2017-10-05 16:37:00 -04:00
|
|
|
{{#link-to 'folder.settings.category' folder.id folder.slug class='non-printable'}}Manage{{/link-to}}
|
2017-09-26 16:30:16 +01:00
|
|
|
{{/unless}}
|
2017-09-25 11:52:26 +01:00
|
|
|
{{else}}
|
|
|
|
<p> </p>
|
|
|
|
{{/if}}
|
2017-09-22 17:23:14 +01:00
|
|
|
{{/each}}
|
|
|
|
|
2017-09-25 11:52:26 +01:00
|
|
|
{{#if canSelectCategory}}
|
2017-09-22 17:23:14 +01:00
|
|
|
<div class="regular-button button-white" id="document-category-button">
|
|
|
|
<i class="material-icons">add</i>
|
|
|
|
</div>
|
|
|
|
{{#dropdown-dialog target="document-category-button" position="bottom left" button="set" color="flat-green" onAction=(action 'onSave')}}
|
2017-09-25 11:52:26 +01:00
|
|
|
<p class="heading">Set document categories</p>
|
2017-09-22 17:23:14 +01:00
|
|
|
{{ui/ui-list-picker items=categories nameField='category'}}
|
2017-09-25 11:52:26 +01:00
|
|
|
{{#if canAddCategory}}
|
|
|
|
{{#link-to 'folder.settings.category' folder.id folder.slug}}Manage{{/link-to}}
|
|
|
|
{{/if}}
|
2017-09-22 17:23:14 +01:00
|
|
|
{{/dropdown-dialog}}
|
|
|
|
{{/if}}
|
2017-09-21 15:48:00 +01:00
|
|
|
</div>
|