mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The trigger and action editors have an "Insert variable" list with the
card's people, card, list and board names and one {customField:Name} per
custom field of the board. Picking one inserts it at the caret of the text
field last focused. Admin-only fields are not offered, since rules do not
read them, and neither is a name the token syntax cannot spell.
Thanks to chessboards and xet7 !
Fixes #3195.
10 lines
362 B
Plaintext
10 lines
362 B
Plaintext
//- #3195: insert a rule variable into the text field last focused in this
|
|
editor, so {customField:Name} and the people tokens need not be typed.
|
|
template(name="ruleVariablePicker")
|
|
label.rule-variable-picker
|
|
span {{_ 'r-insert-variable'}}
|
|
select.js-rule-variable-picker
|
|
option(value="") -
|
|
each tokens
|
|
option(value=this) {{this}}
|