Skip to content

Instantly share code, notes, and snippets.

@naydav
Created October 28, 2017 13:03
Show Gist options
  • Save naydav/704969c75ed68bd17f0ec6d76789d46a to your computer and use it in GitHub Desktop.
Save naydav/704969c75ed68bd17f0ec6d76789d46a to your computer and use it in GitHub Desktop.
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="qty-details" data-role="qty-details">
<table class="table-qty-details">
<tr>
<th class="col-qty-deatils-title"><%- data.sourceTitle %></th>
<th class="col-qty-deatils"><%- data.qtyTitle %></th>
</tr>
<% _.each(data.sources, function(source) { %>
<tr>
<td class="col-qty-deatils-title"><%- source.source_name %></td>
<td class="col-qty-deatils">
<%- source.qty %>
<% if (source.low_stock) { %>
<span class="low-stock" title="Low Stock!">
<span>Low Stock</span>
</span>
<% } %>
</td>
</tr>
<% }); %>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment