Move buttons to separate table column

This commit is contained in:
Oliver 2021-07-11 21:15:06 +10:00
parent 9eb1367d80
commit cc90c8abbe

View File

@ -61,6 +61,7 @@ function adjustStock(items, options={}) {
<th>{% trans "Stock" %}</th> <th>{% trans "Stock" %}</th>
<th>{% trans "Location" %}</th> <th>{% trans "Location" %}</th>
<th>${actionTitle || ''}</th> <th>${actionTitle || ''}</th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -145,12 +146,8 @@ function adjustStock(items, options={}) {
<td id='part_${pk}'><img src='${image}' class='hover-img-thumb'> ${item.part_detail.full_name}</td> <td id='part_${pk}'><img src='${image}' class='hover-img-thumb'> ${item.part_detail.full_name}</td>
<td id='stock_${pk}'>${quantity}${status}</td> <td id='stock_${pk}'>${quantity}${status}</td>
<td id='location_${pk}'>${location}</td> <td id='location_${pk}'>${location}</td>
<td id='action_${pk}'> <td id='action_${pk}'>${actionInput}</td>
<div> <td id='buttons_${pk}'>${buttons}</td>
${actionInput}
${buttons}
</div>
</td>
</tr>`; </tr>`;
}); });