mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Show stock userfields on the stock entry edit form
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
|
||||
@section('content')
|
||||
<script>
|
||||
Grocy.EditObjectId = {{ $stockEntry->id }};
|
||||
Grocy.EditObjectId = "{{ $stockEntry->stock_id }}";
|
||||
Grocy.EditObjectRowId = {{ $stockEntry->id }};
|
||||
Grocy.EditObjectProductId = {{ $stockEntry->product_id }};
|
||||
</script>
|
||||
|
||||
@@ -140,6 +141,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'stock'
|
||||
))
|
||||
|
||||
<button id="save-stockentry-button"
|
||||
class="btn btn-success">{{ $__t('OK') }}</button>
|
||||
|
||||
|
Reference in New Issue
Block a user