Skip to content

Commit

Permalink
add barcode and tag number to items page
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jun 26, 2016
1 parent bb48244 commit c0d7e75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chezbetty/templates/admin/items_list.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include "items_menu.jinja2" %}
{% endblock %}

{% block content %}
{% block contentwide %}

{% set sort=request.GET["sort"]|default(None) %}
{% set dir=request.GET["direction"]|default("asc") %}
Expand All @@ -35,6 +35,8 @@
<th {% if sort=="inventorypercent" %}data-defaultsort="{{ dir }}"{% endif %}>Inventory Percent</th>
<th {% if sort=="theftiness" %} data-defaultsort="{{ dir }}"{% endif %}>Theftiness</th>
<th {% if sort=="profit" %} data-defaultsort="{{ dir }}"{% endif %}>Profit</th>
<th {% if sort=="barcode" %} data-defaultsort="{{ dir }}"{% endif %}>Barcode</th>
<th {% if sort=="tags" %} data-defaultsort="{{ dir }}"{% endif %}>Tags</th>
{% endif %}
</tr>
</thead>
Expand Down Expand Up @@ -78,6 +80,8 @@
<td data-value="{{ item.inventory_percent|round(2) }}">{{ item.inventory_percent|round(2) }}%</td>
<td data-value="{{ item.theftiness|round(2) }}">{{ item.theftiness|round(2) }}%</td>
<td data-value="{{ item.profit|round(2) }}">{{ item.profit|format_currency|safe }}</td>
<td data-value="{{ item.barcode }}">{{ item.barcode }}</td>
<td data-value="{{ item.tags|length }}">{{ item.tags|length }}</td>
{% endif %}
</tr>
{% endfor %}
Expand Down

0 comments on commit c0d7e75

Please sign in to comment.