Dropdowns for foreign_keys in fields.

This commit is contained in:
Yaro Kasear 2025-09-02 14:05:52 -05:00
parent 5307210a7b
commit cfb25f098a
5 changed files with 63 additions and 12 deletions

View file

@ -24,7 +24,7 @@ def index():
devices = device_service.list()
table = render_table(devices)
form = render_form(Device, {})
form = render_form(Device, {}, session)
return render_template('index.html', table=table, form=form)
if __name__ == '__main__':

View file

@ -7,7 +7,6 @@
<h1>Devices</h1>
{{ table|safe }}
<!-- RENDERING FORM START -->
<h2>Add Device</h2>
{{ form|safe }}
</body>