Attachment file rename is now possible

- Relates to: #2099
This commit is contained in:
Martin Filser 2022-04-24 17:12:31 +02:00
parent 21c09c67e4
commit 26e1c1dc4a
5 changed files with 71 additions and 2 deletions

View file

@ -69,6 +69,9 @@ template(name="attachmentActionsPopup")
else
| {{_ 'add-cover'}}
if currentUser.isBoardAdmin
a.js-rename
i.fa.fa-pencil-square-o
| {{_ 'rename'}}
a.js-confirm-delete
i.fa.fa-close
| {{_ 'delete'}}
@ -85,3 +88,8 @@ template(name="attachmentActionsPopup")
a.js-move-storage-gridfs
i.fa.fa-arrow-right
| {{_ 'attachment-move-storage-gridfs'}}
template(name="attachmentRenamePopup")
input.js-edit-attachment-name(type='text' autofocus value=name dir="auto")
.edit-controls.clearfix
button.primary.confirm.js-submit-edit-attachment-name(type="submit") {{_ 'save'}}