Implementing Select field with Flask

From PeformIQ Upgrade
Revision as of 13:48, 26 June 2017 by PeterHarding (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

See:

<select name="State" class="inputSelect">
{% for state in ctx.State_options %}
 <option value="{{state}}" {{'selected' if ctx.State == state else ''}}>{{state}}</option>
{% endfor %}
</select>