Source

pyramid_uniform / pyramid_uniform / templates / zpt / formish / widgets / SelectChoice / widget.html

1
2
3
4
5
6
7
8
<select id="${field.cssname}" name="${field.name}">
  <option tal:condition="field.widget.none_option"
          value="${field.widget.none_value}">${field.widget.none_option[1]}</option>
  <option tal:repeat="option field.widget.get_options(field)"
          value="${option[0]}"
          tal:attributes="selected field.widget.selected(option,field) or None"
          >${option[1]}</option>
</select>