Add button to remove line items from the 'receive' form

This commit is contained in:
Oliver Walters 2019-06-15 19:47:16 +10:00
parent 3405fb93a9
commit 93667f942f

View File

@ -37,7 +37,7 @@ Receive outstanding parts for <b>{{ order }}</b> - <i>{{ order.description }}</i
<th>Receive</th>
</tr>
{% for line in lines %}
<tr>
<tr id='line_row_{{ line.id }}'>
{% if line.part %}
<td>
{% include "hover_image.html" with image=line.part.part.image hover=False %}
@ -56,6 +56,11 @@ Receive outstanding parts for <b>{{ order }}</b> - <i>{{ order.description }}</i
</div>
</div>
</td>
<td>
<button class='btn btn-default btn-remove' id='del_item_{{ line.id }}' title='Remove line' type='button'>
<span row='line_row_{{ line.id }}' onClick="removeOrderRowFromOrderWizard()" class='glyphicon glyphicon-small glyphicon-remove'></span>
</button>
</td>
</tr>
{% endfor %}
</table>