2018-04-11 19:49:35 +02:00
@ extends ( 'layout.default' )
2018-04-16 19:11:32 +02:00
@ section ( 'title' , $L ( 'Consume' ))
2018-04-12 21:13:38 +02:00
@ section ( 'activeNav' , 'consume' )
@ section ( 'viewJsName' , 'consume' )
2018-04-11 19:49:35 +02:00
@ section ( 'content' )
2018-07-10 20:37:13 +02:00
< div class = " row " >
2018-07-12 19:12:31 +02:00
< div class = " col-xs-12 col-md-6 col-xl-4 pb-3 " >
2018-07-10 20:37:13 +02:00
< h1 >@ yield ( 'title' ) </ h1 >
2018-07-11 19:43:05 +02:00
< form id = " consume-form " novalidate >
2018-07-10 20:37:13 +02:00
2018-07-14 14:43:57 +02:00
@ include ( 'components.productpicker' , array (
'products' => $products ,
'nextInputSelector' => '#amount' ,
'disallowAddProductWorkflows' => true
))
2018-07-10 20:37:13 +02:00
2018-09-08 12:04:31 +02:00
@ include ( 'components.numberpicker' , array (
'id' => 'amount' ,
'label' => 'Amount' ,
'hintId' => 'amount_qu_unit' ,
'min' => 1 ,
'value' => 1 ,
2019-03-05 17:51:50 +01:00
'invalidFeedback' => $L ( 'The amount cannot be lower than #1' , '1' ),
'additionalHtmlContextHelp' => '<div id="tare-weight-handling-info" class="text-info font-italic d-none">' . $L ( 'Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated' ) . '</div>'
2018-09-08 12:04:31 +02:00
))
2018-07-10 20:37:13 +02:00
2018-11-17 17:51:35 +01:00
< div class = " form-group " >
< label for = " use_specific_stock_entry " >
< input type = " checkbox " id = " use_specific_stock_entry " name = " use_specific_stock_entry " > {{ $L ( 'Use a specific stock item' ) }}
2019-03-04 17:43:12 +01:00
< span class = " small text-muted " > {{ $L ( 'The first item in this list would be picked by the default rule which is "First expiring first, then first in first out"' ) }} </ span >
2018-11-17 17:51:35 +01:00
</ label >
< select disabled class = " form-control " id = " specific_stock_entry " name = " specific_stock_entry " >
< option ></ option >
</ select >
</ div >
2018-07-10 20:37:13 +02:00
< div class = " checkbox " >
< label for = " spoiled " >
< input type = " checkbox " id = " spoiled " name = " spoiled " > {{ $L ( 'Spoiled' ) }}
</ label >
</ div >
2019-03-03 18:20:06 +01:00
@ if ( GROCY_FEATURE_FLAG_RECIPES )
@ include ( 'components.recipepicker' , array (
'recipes' => $recipes ,
'isRequired' => false ,
'hint' => $L ( 'This is for statistical purposes only' )
))
@ endif
2018-09-29 13:41:56 +02:00
< button id = " save-consume-button " class = " btn btn-success " > {{ $L ( 'OK' ) }} </ button >
2018-11-17 19:39:37 +01:00
< button id = " save-mark-as-open-button " class = " btn btn-secondary " > {{ $L ( 'Mark as opened' ) }} </ button >
2018-07-10 20:37:13 +02:00
</ form >
</ div >
2018-07-11 19:43:05 +02:00
< div class = " col-xs-12 col-md-6 col-xl-4 " >
2018-07-10 20:37:13 +02:00
@ include ( 'components.productcard' )
</ div >
2017-04-19 21:09:28 +02:00
</ div >
2018-04-11 19:49:35 +02:00
@ stop