%page args="module"/> <%def name="id()"> ${module['id']}_select %def> <%def name="selected(option)"> % if 'selected' in option and option['selected'] is True: selected="selected" % endif %def> % if module['params']['label']: ${module['params']['label'] | h} % endif % if 'options' in module: % for option in module["options"]: % if 'value' in option and option.get('value') != None: ${option['text'] | h} % else: ${option['text'] | h} % endif % endfor % endif