Fix event item adding

Bit too heavy handed with the deduplication there Arona
This commit is contained in:
2020-05-21 22:18:04 +01:00
parent 0d0c783e07
commit 919975e1ba

View File

@@ -52,5 +52,30 @@
</table>
</div>
<table class="hidden invisible">
{% include 'item_row.html' %}
<tr id="new-item-row" class="item_row">
<td>
<span class="name"></span>
<div class="item-description">
<em class="description"></em>
</div>
</td>
<td>£&nbsp;<span class="cost"></span></td>
<td class="quantity"></td>
<td>£&nbsp;<span class="sub-total"></span></td>
{% if edit %}
<td class="vert-align text-right">
<div class="btn-group" role="group" aria-label="Action buttons">
<button type="button" class="item-edit btn btn-xs btn-warning"
data-pk="{{item.pk}}"
data-toggle="modal" data-target="#itemModal">
<span class="fas fa-edit"></span>
</button>
<button type="button" class="item-delete btn btn-xs btn-danger"
data-pk="{{item.pk}}">
<span class="fas fa-times-circle"></span>
</button>
</div>
</td>
{% endif %}
</tr>
</table>