update create
This commit is contained in:
parent
4ef7da556c
commit
f5e7f22f16
@ -9,7 +9,7 @@
|
|||||||
<option selected="selected">Choose...</option>
|
<option selected="selected">Choose...</option>
|
||||||
[%- endif %]
|
[%- endif %]
|
||||||
{%- for sub_instance in model_views.[[ column.name ]].model.query.all() %}
|
{%- for sub_instance in model_views.[[ column.name ]].model.query.all() %}
|
||||||
<option value="{{ sub_instance.id }}" {% if instance and instance.id == sub_instance.id %}selected="selected"{% endif %}>{{ sub_instance.name }}</option>
|
<option value="{{ sub_instance.id }}" {% if instance and instance.id == sub_instance.id %}selected="selected"{% endif %}>{{ sub_instance }}</option>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</select>
|
</select>
|
||||||
[%- elif column.type in ['choice', ] %]
|
[%- elif column.type in ['choice', ] %]
|
||||||
|
Loading…
Reference in New Issue
Block a user