mirror of
https://github.com/documize/community.git
synced 2025-08-06 05:55:25 +02:00
document tag editor re-vamped
This commit is contained in:
parent
d6e18b4289
commit
9ccd0fd19c
9 changed files with 54 additions and 48 deletions
|
@ -13,18 +13,24 @@
|
|||
|
||||
{{#each selectedCategories as |cat|}}
|
||||
<div class="regular-button button-blue">{{cat.category}}</div>
|
||||
{{else}}
|
||||
{{#if canAddCategory}}
|
||||
{{#link-to 'folder.settings.category' folder.id folder.slug}}Manage{{/link-to}}
|
||||
{{else}}
|
||||
<p> </p>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{#if hasCategories}}
|
||||
{{#if canSelectCategory}}
|
||||
<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')}}
|
||||
<p class="heading">Select categories for document</p>
|
||||
<p class="heading">Set document categories</p>
|
||||
{{ui/ui-list-picker items=categories nameField='category'}}
|
||||
{{#if canAddCategory}}
|
||||
{{#link-to 'folder.settings.category' folder.id folder.slug}}Manage{{/link-to}}
|
||||
{{/if}}
|
||||
{{/dropdown-dialog}}
|
||||
{{else}}
|
||||
<p> </p>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue