wrap recipient form categories in wrapper and only show when necessary
This commit is contained in:
parent
60c9de44c5
commit
7e7ba291f2
@ -1,14 +1,16 @@
|
|||||||
$newline never
|
$newline never
|
||||||
$forall category <- activeCategories
|
$if not (null activeCategories)
|
||||||
<div .recipient-category>
|
<div .recipient-categories>
|
||||||
<input type=checkbox id=#{checkedIdent category} :elem category checkedCategories:checked>
|
$forall category <- activeCategories
|
||||||
<label .recipient-category__label for=#{checkedIdent category}>
|
<div .recipient-category>
|
||||||
_{category}
|
<input type=checkbox id=#{checkedIdent category} :elem category checkedCategories:checked>
|
||||||
|
<label .recipient-category__label for=#{checkedIdent category}>
|
||||||
|
_{category}
|
||||||
|
|
||||||
$if hasContent category
|
$if hasContent category
|
||||||
<fieldset .recipient-category__fieldset uw-interactive-fieldset .interactive-fieldset__target data-conditional-input=#{checkedIdent category}>
|
<fieldset .recipient-category__fieldset uw-interactive-fieldset .interactive-fieldset__target data-conditional-input=#{checkedIdent category}>
|
||||||
$forall optIx <- categoryIndices category
|
$forall optIx <- categoryIndices category
|
||||||
^{cellWdgts ! optIx}
|
^{cellWdgts ! optIx}
|
||||||
|
|
||||||
$maybe addWdgt <- addWdgts !? (1, (EnumPosition category, 0))
|
$maybe addWdgt <- addWdgts !? (1, (EnumPosition category, 0))
|
||||||
^{addWdgt}
|
^{addWdgt}
|
||||||
|
|||||||
Reference in New Issue
Block a user