mirror of
https://github.com/grocy/grocy.git
synced 2025-10-26 05:57:49 +00:00
Test/review/rework (and hopefully finalized) new price handling
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
@php if(empty($additionalHtmlContextHelp)) { $additionalHtmlContextHelp = ''; } @endphp
|
||||
@php if(!isset($isRequired)) { $isRequired = true; } @endphp
|
||||
@php if(!isset($noNameAttribute)) { $noNameAttribute = false; } @endphp
|
||||
@php if(empty($contextInfoId)) { $additionalHtmlContextHelp = ''; } @endphp
|
||||
|
||||
<div id="group-{{ $id }}"
|
||||
class="form-group {{ $additionalGroupCssClasses }}">
|
||||
@@ -22,7 +23,12 @@
|
||||
{{ $__t($label) }}
|
||||
<span id="{{ $hintId }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $hint }}"></span>{!! $additionalHtmlContextHelp !!}</label>
|
||||
title="{{ $hint }}"></span>{!! $additionalHtmlContextHelp !!}
|
||||
@if(!empty($contextInfoId))
|
||||
<span id="{{ $contextInfoId }}"
|
||||
class="small text-muted"></span>
|
||||
@endif
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input {!!
|
||||
$additionalAttributes
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
@php if(empty($additionalHtmlElements)) { $additionalHtmlElements = ''; } @endphp
|
||||
@php if(empty($label)) { $label = 'Amount'; } @endphp
|
||||
@php if(empty($initialQuId)) { $initialQuId = '-1'; } @endphp
|
||||
@php if(!isset($isRequired)) { $isRequired = true; } @endphp
|
||||
|
||||
<div class="form-group row {{ $additionalGroupCssClasses }}">
|
||||
<div class="col">
|
||||
@@ -29,7 +30,9 @@
|
||||
|
||||
<div class="col-sm-7 col-xs-12">
|
||||
<label for="qu_id">{{ $__t('Quantity unit') }}</label>
|
||||
<select required
|
||||
<select @if($isRequired)
|
||||
required
|
||||
@endif
|
||||
class="form-control input-group-productamountpicker"
|
||||
id="qu_id"
|
||||
name="qu_id"
|
||||
|
||||
@@ -42,8 +42,6 @@
|
||||
|
||||
<strong>{{ $__t('Stock amount') }}:</strong> <span id="productcard-product-stock-amount"
|
||||
class="locale-number locale-number-quantity-amount"></span> <span id="productcard-product-stock-qu-name"></span>
|
||||
<span id="productcard-product-stock-factor-purchase-amount"
|
||||
class="locale-number locale-number-quantity-amount"></span> <span id="productcard-product-stock-factor-purchase-qu-name"></span>
|
||||
<span id="productcard-product-stock-opened-amount"
|
||||
class="small font-italic locale-number locale-number-quantity-amount"></span><br>
|
||||
<strong>{{ $__t('Stock value') }}:</strong> <span id="productcard-product-stock-value"
|
||||
|
||||
Reference in New Issue
Block a user