mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Honor Submit editors with Enter across textarea editors, retain composition and mention handling, and route shortcuts through existing scoped save actions. Preserve manual resize dimensions after typing and retain single-line structured fields. Keep the typography reset from overriding themed button foregrounds, including Board Settings column actions. Verify blue, green, dark and Clean Light buttons and chart actions. Thanks to xet7.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
template(name="cardTextNotes")
|
|
.card-text-notes
|
|
each textNotes
|
|
.card-text-note-item
|
|
.card-text-note-header
|
|
b.card-text-note-title {{title}}
|
|
if canModifyCard
|
|
.card-text-note-actions
|
|
a.js-edit-text-note(title="{{_ 'edit-text-note'}}" data-id="{{_id}}")
|
|
i.fa.fa-pencil
|
|
a.js-delete-text-note(title="{{_ 'delete-text-note'}}" data-id="{{_id}}")
|
|
i.fa.fa-trash
|
|
.card-text-note-preview
|
|
+viewer
|
|
= text
|
|
|
|
if canModifyCard
|
|
a.add-text-note.js-add-text-note(title="{{_ 'add-text-note'}}")
|
|
i.fa.fa-plus
|
|
| {{_ 'add-text-note'}}
|
|
|
|
template(name="cardTextNoteEditPopup")
|
|
form.js-card-text-note-edit-form
|
|
label {{_ 'text-note-title'}}
|
|
textarea.js-card-text-note-title-input(rows="2" dir="auto" autofocus)= title
|
|
label {{_ 'text-note-text'}}
|
|
+editor(class="js-card-text-note-text-input")
|
|
= text
|
|
.edit-controls.clearfix
|
|
button.primary.confirm.js-submit-text-note(type="submit") {{_ 'save'}}
|
|
if cardId
|
|
a.fa.fa-trash-o.js-delete-text-note-from-popup(title="{{_ 'delete-text-note'}}")
|
|
|
|
template(name="cardTextNoteDeletePopup")
|
|
p {{_ "text-note-delete-pop"}}
|
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|