Remove stock location from stock levels table and fix Spree.t entry bug

This commit is contained in:
luisramos0
2019-04-05 14:01:27 +01:00
parent 9c99e64f1f
commit 5989a654d1

View File

@@ -34,23 +34,20 @@
<legend align="center"><%= Spree.t(:select_stock) %></legend>
<table class="stock-levels" data-hook="stock-levels">
<colgroup>
<col style="width: 60%;" />
<col style="width: 30%;" />
<col style="width: 40%;" />
<col style="width: 20%;" />
<col style="width: 10%;" />
</colgroup>
<thead>
<th><%= Spree.t(:location) %></th>
<th><%= Spree.t(:on_hand) %></th>
<th><%= Spree.t(:quantity) %></th>
<th class="actions"></th>
</thead>
<tbody>
<tr>
<td>{{variant.stock_location_name}}</td>
{{#if variant.[in_stock?]}}
{{#if variant.on_demand}}
<td>Spree.t(:on_demand)</td>
<td><%= Spree.t(:on_demand) %></td>
{{else}}
<td>
{{variant.on_hand}}