2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Make Reference and Notes fields editable

This commit is contained in:
Oliver Walters
2019-07-07 09:57:23 +10:00
parent b77bfc74ea
commit 3930651c59
3 changed files with 16 additions and 2 deletions

View File

@@ -46,8 +46,16 @@
<td>{% add row.index 1 %}</td>
{% for item in row.data %}
<td>
{% if item.column.guess == 'Quantity' %}
{% if item.column.guess == 'Part' %}
<select class='select' id='id_part_{{ row.index }}' name='part_select_{{ row.index }}'>
<option value=''>---------</option>
</select>
<br>
{{ item.cell }}
{% elif item.column.guess == 'Quantity' %}
<input class='numberinput' type='number' min='1' value='{{ row.quantity }}'/>
{% elif item.editable %}
<input id='id_edit_{{ item.column.guess }}_{{ row.index }}' name='edit_{{ item.column.guess }}_{{ row.index }}' value='{{ item.cell }}'/>
{% else %}
{{ item.cell }}
{% endif %}