mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
select2ify part selection
This commit is contained in:
parent
bd30ac037b
commit
f251620917
@ -47,7 +47,7 @@
|
||||
{% for item in row.data %}
|
||||
<td>
|
||||
{% if item.column.guess == 'Part' %}
|
||||
<select class='select' id='id_part_{{ row.index }}' name='part_select_{{ row.index }}'>
|
||||
<select class='select bomselect' id='id_part_{{ row.index }}' name='part_select_{{ row.index }}'>
|
||||
<option value=''>---------</option>
|
||||
{% for part in allowed_parts_list %}
|
||||
<option value='{{ part.id }}'>{{ part.full_name }} - {{ part.description }}</option>
|
||||
@ -71,4 +71,11 @@
|
||||
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
$('.bomselect').select2();
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user