Files
wekan/client/components/main/structuralSelection.jade
T
Lauri Ojansivu 53fef3c12a Name the move-selection position choices in words and give the popup a title.
The mixed-selection move picker showed its before/after choices as arrow
characters inside <option> elements, where no icon can be drawn; they are
now the words Before and After (English, pending translation). The Move
selection popup opened with an empty header, so it had no title or close
button text; both places that open it now pass the translated title. The
menu inventory records the due-reminder Save as a form submission. Tests
cover each, including negative checks that the arrows and the untitled
popup do not return.

Thanks to xet7 !
2026-09-29 14:49:25 +03:00

24 lines
1.1 KiB
Plaintext

template(name="structuralSelectionCheckbox")
if MultiSelection.isActive
if canModifyBoard
button.materialCheckBox.multi-selection-checkbox.js-structural-selection(type="button" class="{{#if selected}}is-checked{{/if}}" role="checkbox" aria-checked=selected aria-label=label data-kind=kind data-id=id)
template(name="moveObjectsPopup")
h3 {{_ 'move-selection'}}
if error.get
.warning {{error.get}}
each fields
label= label
select.js-object-destination(data-field=key)
option(value="")= emptyLabel
each options
option(value=_id selected=selected)= title
select.js-object-position(aria-label="{{_ 'move-selection'}}")
//- Words, not ↑/↓: an arrow character is a platform-drawn picture (see
//- tests/fontAwesomeIcons.test.cjs), and an <option> cannot hold a Font
//- Awesome <i>. "Before"/"after" also says the right thing for a list, whose
//- neighbours are to its left and right rather than above and below.
option(value="before") {{_ 'move-selection-before'}}
option(value="after") {{_ 'move-selection-after'}}
button.primary.js-move-objects(disabled=busy.get) {{_ 'move-selection'}}