mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
45 lines
1.4 KiB
PHP
45 lines
1.4 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title', $L('Consume'))
|
|
@section('activeNav', 'consume')
|
|
@section('viewJsName', 'consume')
|
|
|
|
@section('content')
|
|
<div class="col-lg-4 col-xs-12">
|
|
<h1 class="page-header">@yield('title')</h1>
|
|
|
|
<form id="consume-form">
|
|
|
|
<div class="form-group">
|
|
<label for="product_id">{{ $L('Product') }} <i class="fa fa-barcode"></i></label>
|
|
<select class="form-control combobox" id="product_id" name="product_id" required>
|
|
<option value=""></option>
|
|
@foreach($products as $product)
|
|
<option data-additional-searchdata="{{ $product->barcode }}" value="{{ $product->id }}">{{ $product->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
<div id="product-error" class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="amount">{{ $L('Amount') }} <span id="amount_qu_unit" class="small text-muted"></span></label>
|
|
<input type="number" class="form-control" id="amount" name="amount" value="1" min="1" required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
<label for="spoiled">
|
|
<input type="checkbox" id="spoiled" name="spoiled"> {{ $L('Spoiled') }}
|
|
</label>
|
|
</div>
|
|
|
|
<button id="save-consume-button" type="submit" class="btn btn-default">{{ $L('OK') }}</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-xs-12">
|
|
@include('components.productcard')
|
|
</div>
|
|
@stop
|