mirror of
https://github.com/grocy/grocy.git
synced 2025-04-28 17:23:56 +00:00
50 lines
2.4 KiB
PHP
50 lines
2.4 KiB
PHP
<div class="col-sm-4 col-sm-offset-3 col-md-3 col-md-offset-2 main">
|
|
<h1 class="page-header">Inventory</h1>
|
|
|
|
<form id="inventory-form">
|
|
|
|
<div class="form-group">
|
|
<label for="product_id">Product <i class="fa fa-barcode"></i></label>
|
|
<select class="form-control combobox" id="product_id" name="product_id" required>
|
|
<option value=""></option>
|
|
<?php foreach ($products as $product) : ?>
|
|
<option data-additional-searchdata="<?php echo $product->barcode; ?>" value="<?php echo $product->id; ?>"><?php echo $product->name; ?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="new_amount">New amount <span id="new_amount_qu_unit" class="small text-muted"></span></label>
|
|
<input type="number" data-notequal="notequal" class="form-control" id="new_amount" name="new_amount" min="0" not-equal="-1" required>
|
|
<div class="help-block with-errors"></div>
|
|
<div id="inventory-change-info" class="help-block text-muted"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="best_before_date">Best before <span class="small text-muted">This will apply to added products</span></label>
|
|
<div class="input-group date">
|
|
<input type="text" data-isodate="isodate" class="form-control datepicker" id="best_before_date" name="best_before_date" autocomplete="off">
|
|
<div id="best_before_date-datepicker-button" class="input-group-addon">
|
|
<i class="fa fa-calendar"></i>
|
|
</div>
|
|
</div>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<button id="save-inventory-button" type="submit" class="btn btn-default">OK</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-5 col-lg-3 main well">
|
|
<h3>Product overview <strong><span id="selected-product-name"></span></strong></h3>
|
|
<h4><strong>Purchase quantity:</strong> <span id="selected-product-purchase-qu-name"></span></h4>
|
|
|
|
<p>
|
|
<strong>Stock amount:</strong> <span id="selected-product-stock-amount"></span> <span id="selected-product-stock-qu-name"></span><br />
|
|
<strong>Last purchased:</strong> <span id="selected-product-last-purchased"></span> <time id="selected-product-last-purchased-timeago" class="timeago timeago-contextual"></time><br />
|
|
<strong>Last used:</strong> <span id="selected-product-last-used"></span> <time id="selected-product-last-used-timeago" class="timeago timeago-contextual"></time>
|
|
</p>
|
|
</div>
|