Added a new field calories for products (closes #268)

This commit is contained in:
Bernd Bestel
2019-09-20 20:06:24 +02:00
parent 1ae5f552d1
commit c228126c3a
8 changed files with 144 additions and 5 deletions

View File

@@ -201,6 +201,17 @@
</label>
</div>
</div>
@php if($mode == 'edit') { $value = $product->calories; } else { $value = ''; } @endphp
@include('components.numberpicker', array(
'id' => 'calories',
'label' => 'Energy (kcal)',
'min' => 0,
'step' => 1,
'value' => $value,
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
'hint' => $__t('Per stock quantity unit')
))
@endif
<div class="form-group">