diff --git a/app/app/templates/components/document/sidebar-view-attachments.hbs b/app/app/templates/components/document/sidebar-view-attachments.hbs index f28224aa..b3e1e2c2 100644 --- a/app/app/templates/components/document/sidebar-view-attachments.hbs +++ b/app/app/templates/components/document/sidebar-view-attachments.hbs @@ -1,9 +1,11 @@
Attachments
-
- Drag-drop files or click to select files -
+ {{#if isEditor}} +
+ Drag-drop files or click to select files +
+ {{/if}}
@@ -71,33 +61,36 @@ {{/dropdown-menu}} -{{#if menuOpen}} - {{#dropdown-dialog target="delete-document-button" position="bottom right" button="Delete" color="flat-red" onAction=(action 'onDeleteDocument')}} -

Are you sure you want to delete this document?

-

There is no undo, so be careful.

- {{/dropdown-dialog}} +{{#if session.authenticated}} + {{#if isEditor}} + {{#if menuOpen}} + {{#dropdown-dialog target="delete-document-button" position="bottom right" button="Delete" color="flat-red" onAction=(action 'onDeleteDocument')}} +

Are you sure you want to delete this document?

+

There is no undo, so be careful.

+ {{/dropdown-dialog}} - {{#unless pinState.isPinned}} - {{#dropdown-dialog target="pin-document-button" position="bottom right" button="Pin" color="flat-green" onAction=(action 'onPin') focusOn="pin-document-name" }} -
- -
A 3 or 4 character name
- {{input type='text' id="pin-document-name" value=pinState.newName}} -
- {{/dropdown-dialog}} - {{/unless}} + {{#unless pinState.isPinned}} + {{#dropdown-dialog target="pin-document-button" position="bottom right" button="Pin" color="flat-green" onAction=(action 'onPin') focusOn="pin-document-name" }} +
+ +
A 3 or 4 character name
+ {{input type='text' id="pin-document-name" value=pinState.newName}} +
+ {{/dropdown-dialog}} + {{/unless}} - {{#dropdown-dialog target="save-template-button" position="bottom right" button="Save as Template" color="flat-green" onAction=(action 'onSaveTemplate') focusOn="new-template-name" }} -
- -
Short name for this type of document
- {{input type='text' id="new-template-name" value=saveTemplate.name}} -
-
- -
Explain use case for this template
- {{textarea value=saveTemplate.description rows="3" id="new-template-desc"}} -
- {{/dropdown-dialog}} + {{#dropdown-dialog target="save-template-button" position="bottom right" button="Save as Template" color="flat-green" onAction=(action 'onSaveTemplate') focusOn="new-template-name" }} +
+ +
Short name for this type of document
+ {{input type='text' id="new-template-name" value=saveTemplate.name}} +
+
+ +
Explain use case for this template
+ {{textarea value=saveTemplate.description rows="3" id="new-template-desc"}} +
+ {{/dropdown-dialog}} + {{/if}} + {{/if}} {{/if}} -