Skip to content

Instantly share code, notes, and snippets.

View joshbloomfield's full-sized avatar

Josh Bloomfield joshbloomfield

View GitHub Profile
@joshbloomfield
joshbloomfield / buying-screen.html
Created March 3, 2018 13:16
New Buying Screen: Liquid.js + JSON
<!-- the template for each product row in the buying table written in liquid.js -->
<script type="text/template" id="row-template">
<tr class="product {{ product.id }} on-order category-{{ product.category_id }}" search="{{ product.name | downcase }}" search_var="{{ product.variant | downcase }}" data-category-id="{{ product.category_id }}" data-supplier-id="{{ product.orders[0].supplier_id }}">
<td>
<div class="circle-thumb pull-left">
<div class="order-thumbnail text-center">{{ product.name[0] | capitalize }}</div>
</div>
<div class="prod-details" style="margin-left:50px; line-height:2.35;">
<div class="item-name">{{ product.name }}
{% if (product.variant) %}