mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
Provide basis for document lifecycle
This commit is contained in:
parent
d9a9a828ed
commit
ba52dfa11d
20 changed files with 350 additions and 154 deletions
|
@ -7,6 +7,9 @@
|
|||
<div class="title">{{ document.name }}</div>
|
||||
<div class="snippet">{{ document.excerpt }}</div>
|
||||
{{folder/document-tags documentTags=document.tags}}
|
||||
{{#if (not-eq document.lifecycle constants.Lifecycle.Live)}}
|
||||
<button type="button" class="mt-3 btn btn-warning text-uppercase font-weight-bold">{{document.lifecycleLabel}}</button>
|
||||
{{/if}}
|
||||
{{/link-to}}
|
||||
|
||||
{{#if hasDocumentActions}}
|
||||
|
@ -39,11 +42,13 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
{{#ui/ui-dialog title="Delete Documents" confirmCaption="Delete" buttonType="btn-danger" show=showDeleteDialog onAction=(action 'onDeleteDocuments')}}
|
||||
{{#ui/ui-dialog title="Delete Documents" confirmCaption="Delete" buttonType="btn-danger" show=showDeleteDialog onAction=(action
|
||||
'onDeleteDocuments')}}
|
||||
<p>Are you sure you want to delete {{selectedDocuments.length}} {{selectedCaption}}?</p>
|
||||
{{/ui/ui-dialog}}
|
||||
|
||||
{{#ui/ui-dialog title="Move Documents" confirmCaption="Move" buttonType="btn-success" show=showMoveDialog onAction=(action 'onMoveDocuments')}}
|
||||
{{#ui/ui-dialog title="Move Documents" confirmCaption="Move" buttonType="btn-success" show=showMoveDialog onAction=(action
|
||||
'onMoveDocuments')}}
|
||||
<p>Select space for {{selectedDocuments.length}} {{selectedCaption}}</p>
|
||||
{{ui/ui-list-picker items=moveOptions nameField='name' singleSelect=true}}
|
||||
{{/ui/ui-dialog}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue