Added another new combobox.
This commit is contained in:
parent
c9b41b05b2
commit
1ccdf89739
1 changed files with 18 additions and 8 deletions
|
|
@ -139,11 +139,14 @@
|
|||
) }}
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ combos.render_combobox(
|
||||
{{ combos.dynamic_combobox(
|
||||
id='type',
|
||||
options=types,
|
||||
label='Inventory Types',
|
||||
placeholder='Add a new type'
|
||||
placeholder='Add a new type',
|
||||
create_url=url_for('ui.create_item', model_name='item'),
|
||||
edit_url=url_for('ui.update_item', model_name='item'),
|
||||
refresh_url=url_for('ui.list_items', model_name='item'),
|
||||
delete_url=url_for('ui.delete_item', model_name='item')
|
||||
) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -151,19 +154,26 @@
|
|||
<div class="tab-pane fade border border-top-0 p-3" id="location-tab-pane">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ combos.render_combobox(
|
||||
{{ combos.dynamic_combobox(
|
||||
id='section',
|
||||
options=sections,
|
||||
label='Sections',
|
||||
placeholder='Add a new section'
|
||||
placeholder='Add a new section',
|
||||
create_url=url_for('ui.create_item', model_name='area'),
|
||||
edit_url=url_for('ui.update_item', model_name='area'),
|
||||
refresh_url=url_for('ui.list_items', model_name='area'),
|
||||
delete_url=url_for('ui.delete_item', model_name='area')
|
||||
) }}
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ combos.render_combobox(
|
||||
{{ combos.dynamic_combobox(
|
||||
id='function',
|
||||
options=functions,
|
||||
label='Functions',
|
||||
placeholder='Add a new function'
|
||||
placeholder='Add a new function',
|
||||
create_url=url_for('ui.create_item', model_name='function'),
|
||||
edit_url=url_for('ui.update_item', model_name='function'),
|
||||
refresh_url=url_for('ui.list_items', model_name='function'),
|
||||
delete_url=url_for('ui.delete_item', model_name='function')
|
||||
) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue