{% for model_field in view_model.fields -%} {{ model_field.field_name }} {% if model_field.select_list != "" %} {% if model_field.is_option %} {% else %} Select {% endif %} {% for select_list_item in select_lists[model_field.field_name] -%} {{ select_list_item[1] }} {%- endfor %} {% else %} {% if model.errors | get(key=model_field.field_name, default="") != "" %} placeholder="Invalid" aria-invalid="true" {% endif %} {% endif %} {%- endfor %} Save Cancel