mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
Change position of doc attachments
This commit is contained in:
parent
ca4a9a74ee
commit
fe7548cd97
7 changed files with 136 additions and 147 deletions
|
@ -62,7 +62,6 @@
|
|||
{{#attach-tooltip showDelay=1000}}Tag{{/attach-tooltip}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#if unassigned}}
|
||||
{{#if permissions.spaceManage}}
|
||||
<div class="empty cursor-pointer" {{action "onEditCategory"}}>Unassigned</div>
|
||||
|
@ -70,6 +69,8 @@
|
|||
<div class="empty">Unassigned</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<Ui::UiSpacer @size="200" />
|
||||
</div>
|
||||
|
||||
{{document/sidebar-attachment document=document permissions=permissions}}
|
||||
|
||||
<Ui::UiSpacer @size="200" />
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<div class="title center">attachments</div>
|
||||
{{#if canEdit}}
|
||||
<div class="text-center">
|
||||
<Ui::UiSpacer @size="100" />
|
||||
{{ui/ui-button color=constants.Color.Gray label="Upload" id="upload-document-files"}}
|
||||
<Ui::UiSpacer @size="100" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasAttachments}}
|
||||
{{#if (or hasAttachments canEdit)}}
|
||||
<Ui::UiSpacer @size="200" />
|
||||
<div class="title">attachments</div>
|
||||
<div class="document-sidebar-attachment">
|
||||
<ul class="files">
|
||||
{{#each files key="id" as |file|}}
|
||||
|
@ -18,21 +11,19 @@
|
|||
</a>
|
||||
{{#if canEdit}}
|
||||
<div class="menu">
|
||||
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||
{{#ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red}}
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="escapekey, clickout" showOn="click" isShown=false}}
|
||||
<div class="form">
|
||||
<p>Are you sure you want to delete this file?</p>
|
||||
<Ui::UiSpacer @size="100" />
|
||||
{{ui/ui-button
|
||||
light=false
|
||||
label=constants.Label.Delete
|
||||
color=constants.Color.Red
|
||||
onClick=(action "onDelete" file)}}
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
{{/ui/ui-toolbar-icon}}
|
||||
{{/ui/ui-toolbar}}
|
||||
<i class="dicon {{constants.Icon.Cross}}">
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="escapekey, clickout" showOn="click" isShown=false}}
|
||||
<div class="form">
|
||||
<p>Are you sure you want to delete this file?</p>
|
||||
<Ui::UiSpacer @size="100" />
|
||||
{{ui/ui-button
|
||||
light=false
|
||||
label=constants.Label.Delete
|
||||
color=constants.Color.Red
|
||||
onClick=(action "onDelete" file)}}
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
</i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
|
@ -40,10 +31,12 @@
|
|||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{else}}
|
||||
<p class="empty-label">No attachments</p>
|
||||
{{#if canEdit}}
|
||||
{{#unless hasAttachments}}
|
||||
<Ui::UiSpacer @size="100" />
|
||||
{{/unless}}
|
||||
<div id="upload-document-files">
|
||||
<span>Upload</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#ui/ui-dialog title="Delete Attachment" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDialog onAction=(action "onDelete")}}
|
||||
<p>Are you sure you want to delete {{deleteAttachment.name}}?</p>
|
||||
{{/ui/ui-dialog}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue