Remove legacy vendor sources grid for product view
whoops, missed that when purging jquery theme
This commit is contained in:
parent
ad5dec3dc6
commit
21669b5f4a
|
@ -138,38 +138,6 @@
|
|||
|
||||
<%def name="sources_grid()">
|
||||
${vendor_sources['grid'].render_buefy_table_element(data_prop='vendorSourcesData')|n}
|
||||
<div class="grid full no-border">
|
||||
<table>
|
||||
<thead>
|
||||
<th>${costs_label_preferred}</th>
|
||||
<th>${costs_label_vendor}</th>
|
||||
<th>${costs_label_code}</th>
|
||||
<th>${costs_label_case_size}</th>
|
||||
<th>Case Cost</th>
|
||||
<th>Unit Cost</th>
|
||||
<th>Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for i, cost in enumerate(instance.costs, 1):
|
||||
<tr class="${'even' if i % 2 == 0 else 'odd'}">
|
||||
<td class="center">${'X' if cost.preference == 1 else ''}</td>
|
||||
<td>
|
||||
% if request.has_perm('vendors.view'):
|
||||
${h.link_to(cost.vendor, request.route_url('vendors.view', uuid=cost.vendor_uuid))}
|
||||
% else:
|
||||
${cost.vendor}
|
||||
% endif
|
||||
</td>
|
||||
<td class="center">${cost.code or ''}</td>
|
||||
<td class="center">${h.pretty_quantity(cost.case_size)}</td>
|
||||
<td class="right">${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''}</td>
|
||||
<td class="right">${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''}</td>
|
||||
<td>${"discontinued" if cost.discontinued else "available"}</td>
|
||||
</tr>
|
||||
% endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</%def>
|
||||
|
||||
<%def name="sources_panel()">
|
||||
|
|
Loading…
Reference in a new issue