mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 07:22:14 +00:00
Need to get this working, thinking probably best to serialize the data and submit it that way so changes are only saved on update
26 lines
811 B
HTML
26 lines
811 B
HTML
<tr id="item-{{item.pk}}" data-url="{% url 'api_secure' item.pk %}" data-pk="{{item.pk}}">
|
|
<td>
|
|
{{ item.name }}
|
|
{% if item.description %}
|
|
<br />
|
|
<em>{{item.description|linebreaksbr}}</em>
|
|
{% endif %}
|
|
</td>
|
|
<td>£ {{item.cost}}</td>
|
|
<td>{{item.quantity}}</td>
|
|
<td class="sub-total" data-subtotal="{{item.total_cost}}">£ {{item.total_cost}}</td>
|
|
{% if edit %}
|
|
<td class="vert-align text-right">
|
|
<button type="button" class="item-edit btn btn-xs btn-default"
|
|
data-pk="{{item.pk}}"
|
|
data-toggle="modal" data-target="#itemModal">
|
|
<span class="glyphicon glyphicon-edit"></span>
|
|
</button>
|
|
<button type="button" class="item-delete btn btn-xs btn-danger"
|
|
data-pk="{{item.pk}}">
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
</button>
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|