1.7.27. LineItem drop (向上)
1.7.27.1. 方法
1.7.27.1.1. 错误
如果在提交失败后呈现此模型,这将返回发生的错误。
{{ line_item.errors.name | inline_errors }}1.7.27.1.2. name
{% for line_item in invoice.line_items %}
<tr class="line_item {% cycle 'odd', 'even' %}">
<th>{{ line_item.name }}</th>
<td>{{ line_item.description }}</td>
<td>{{ line_item.quantity }}</td>
<td>{{ line_item.cost }}</td>
</tr>
{% endfor %}