mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a note field to product barcodes (closes #962)
This commit is contained in:
@@ -90,6 +90,15 @@
|
||||
value="1">
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<label for="note">{{ $__t('Note') }}</label>
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
id="note"
|
||||
name="note"
|
||||
value="@if($mode == 'edit'){{ $barcode->note }}@endif">
|
||||
</div>
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'product_barcodes'
|
||||
|
@@ -470,6 +470,7 @@
|
||||
<th>{{ $__t('Quantity unit') }}</th>
|
||||
<th>{{ $__t('Amount') }}</th>
|
||||
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Last price') }}</th>
|
||||
<th>{{ $__t('Note') }}</th>
|
||||
|
||||
@include('components.userfields_thead', array(
|
||||
'userfields' => $productBarcodeUserfields
|
||||
@@ -518,6 +519,9 @@
|
||||
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
|
||||
<span class="locale-number locale-number-currency">{{ $barcode->last_price }}</span>
|
||||
</td>
|
||||
<td>
|
||||
{{ $barcode->note }}
|
||||
</td>
|
||||
|
||||
@include('components.userfields_tbody', array(
|
||||
'userfields' => $productBarcodeUserfields,
|
||||
|
Reference in New Issue
Block a user