src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt
changeset 122 c7a6f6cd50af
parent 114 e7e4b4146a91
child 126 e76c8179e1a6
equal deleted inserted replaced
121:b801eda057ff 122:c7a6f6cd50af
    15 							<label class="checkbox"
    15 							<label class="checkbox"
    16 								   tal:define="published python:subterm.status == 'published'"
    16 								   tal:define="published python:subterm.status == 'published'"
    17 								   tal:omit-tag="not:published">
    17 								   tal:omit-tag="not:published">
    18 								<input tal:condition="published"
    18 								<input tal:condition="published"
    19 									   type="checkbox"
    19 									   type="checkbox"
    20 									   name="${view/name}:list"
       
    21 									   id="term_${subterm/label}"
    20 									   id="term_${subterm/label}"
    22 									   name="${view/name}:list"
    21 									   name="${view/name}:list"
    23 									   value="${subterm/label}"
    22 									   value="${subterm/label}"
    24 									   checked="${python:'checked' if subterm.label in (view.value or ()) else None}"
    23 									   checked="${python:'checked' if subterm.label in (view.value or ()) else None}"
    25 									   data-ams-change-handler="PyAMS_thesaurus.widget.updateSelection"/>
    24 									   data-ams-change-handler="PyAMS_thesaurus.widget.updateSelection"/>
    26 								<i></i>
    25 								<i></i>
    27 								<div class="${python:'' if published else 'bold margin-top-5'}">
    26 								<div class="${python:'' if published else 'bold margin-top-10'}">
    28 									${python:subterm.alt or subterm.label}
    27 									${python:subterm.alt or subterm.label}
    29 								</div>
    28 								</div>
    30 							</label>
    29 							</label>
    31 						</div>
    30 						</div>
    32 					</tal:loop>
    31 					</tal:loop>