{% from "macros/form/input_block.html" import input_block %} {% from "macros/form/attributes.html" import attributes %} {# Creates all the markup required for an select element. Handles matching labels to inputs and error messages. A field should be a dict with a "value" key and an optional "text" key which will be displayed to the user. We use a dict to easily allow extension in future should extra options be required. name - The name of the form parameter. id - The id to use on the input and label. Convention is to prefix with 'field-'. label - The human readable label. options - A list/tuple of fields to be used as . selected - The value of the selected