diff options
Diffstat (limited to 'servo/templates/orders/checklists.html')
-rwxr-xr-x | servo/templates/orders/checklists.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/servo/templates/orders/checklists.html b/servo/templates/orders/checklists.html new file mode 100755 index 0000000..b2f9e47 --- /dev/null +++ b/servo/templates/orders/checklists.html @@ -0,0 +1,10 @@ +{% load servo_tags %} +{% for c in checklists %} + <h4>{{ c.title }} ({{ order.checklistitemvalue_set.all.count }}/{{ c.checklistitem_set.all.count }})</h4> + {% for i in c.checklistitem_set.all %} + <label class="checkbox" style="margin-left:8x"> + <input type="checkbox" data-url="{% url 'orders-toggle_task' order.id i.id %}" class="toggle" {% if order|is_item_complete:i %}checked="checked"{% endif %}/> {{ i.title }} <i class="muted">{{ order|item_completed_by:i }}</i> + </label> + {% if forloop.last %}<hr/>{% endif %} + {% endfor %} +{% endfor %} |