Files
PyRIGS/RIGS/templates/RIGS/item_row.html
Tom Price d90306a5e0 Added event items to the event form.
Need to get this working, thinking probably best to serialize the data and submit it that way so changes are only saved on update
2014-12-03 12:13:13 +00:00

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>£&nbsp;{{item.cost}}</td>
<td>{{item.quantity}}</td>
<td class="sub-total" data-subtotal="{{item.total_cost}}">£&nbsp;{{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>