fix choice
This commit is contained in:
parent
967b47876f
commit
625fe533d5
@ -25,7 +25,7 @@
|
||||
</select>
|
||||
[%- elif column.type in ['choice', ] %]
|
||||
<select id="input-[[ name|camel_to_snake ]]-[[ column.name ]]"
|
||||
name="[[ column.name ]]_id">
|
||||
name="[[ column.name ]]">
|
||||
<option selected="selected" value="">Choose...</option>
|
||||
[%- for value, display in column.choices.items() %]
|
||||
<option value="[[ value ]]" {% if instance and instance.[[ column.name ]] == "[[ value ]]" %}selected="selected"{% endif %}>[[ display ]]</option>
|
||||
|
@ -23,7 +23,7 @@
|
||||
</select>
|
||||
[%- elif column.type in ['choice', ] %]
|
||||
<select id="input-[[ name|camel_to_snake ]]-[[ column.name ]]"
|
||||
name="[[ column.name ]]_id">
|
||||
name="[[ column.name ]]">
|
||||
[%- for value, display in column.choices.items() %]
|
||||
<option value="[[ value ]]" {% if instance.[[ column.name ]] == "[[ value ]]" %}selected="selected"{% endif %}>[[ display ]]</option>
|
||||
[%- endfor %]
|
||||
|
Loading…
Reference in New Issue
Block a user