mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Improved form spacing
This commit is contained in:
parent
44eb74ca52
commit
ad3b91ef98
@ -1076,7 +1076,7 @@ msgstr ""
|
|||||||
msgid "Product count"
|
msgid "Product count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Type a new product name or barcode and hit TAB to start a workflow"
|
msgid "Type a new product name or barcode and hit TAB or ENTER to start a workflow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "This will be used as the default setting when adding this product as a recipe ingredient"
|
msgid "This will be used as the default setting when adding this product as a recipe ingredient"
|
||||||
|
@ -123,6 +123,7 @@ if (addBarcode !== undefined)
|
|||||||
$('#addbarcodetoselection').text(addBarcode);
|
$('#addbarcodetoselection').text(addBarcode);
|
||||||
$('#flow-info-addbarcodetoselection').removeClass('d-none');
|
$('#flow-info-addbarcodetoselection').removeClass('d-none');
|
||||||
$('#barcode-lookup-disabled-hint').removeClass('d-none');
|
$('#barcode-lookup-disabled-hint').removeClass('d-none');
|
||||||
|
$('#barcode-lookup-hint').addClass('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Components.ProductPicker.PopupOpen = false;
|
Grocy.Components.ProductPicker.PopupOpen = false;
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
{
|
{
|
||||||
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
||||||
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
||||||
|
$('#barcode-lookup-hint').removeClass('d-none');
|
||||||
window.history.replaceState({}, document.title, U("/consume"));
|
window.history.replaceState({}, document.title, U("/consume"));
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
{
|
{
|
||||||
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
||||||
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
||||||
|
$('#barcode-lookup-hint').removeClass('d-none');
|
||||||
window.history.replaceState({}, document.title, U("/inventory"));
|
window.history.replaceState({}, document.title, U("/inventory"));
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
{
|
{
|
||||||
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
||||||
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
||||||
|
$('#barcode-lookup-hint').removeClass('d-none');
|
||||||
window.history.replaceState({}, document.title, U("/purchase"));
|
window.history.replaceState({}, document.title, U("/purchase"));
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
{
|
{
|
||||||
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
$("#flow-info-addbarcodetoselection").addClass("d-none");
|
||||||
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
$('#barcode-lookup-disabled-hint').addClass('d-none');
|
||||||
|
$('#barcode-lookup-hint').removeClass('d-none');
|
||||||
window.history.replaceState({}, document.title, U("/transfer"));
|
window.history.replaceState({}, document.title, U("/transfer"));
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
<div id="datetimepicker-earlier-than-info"
|
<div id="datetimepicker-earlier-than-info"
|
||||||
class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div>
|
class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div>
|
||||||
@if(isset($shortcutValue) && isset($shortcutLabel))
|
@if(isset($shortcutValue) && isset($shortcutLabel))
|
||||||
<div class="form-group my-0">
|
<div class="form-group mt-n2 mb-0">
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
<input type="hidden"
|
<input type="hidden"
|
||||||
name="datetimepicker-shortcut"
|
name="datetimepicker-shortcut"
|
||||||
|
@ -63,13 +63,23 @@
|
|||||||
<div id="datetimepicker2-earlier-than-info"
|
<div id="datetimepicker2-earlier-than-info"
|
||||||
class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div>
|
class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div>
|
||||||
@if(isset($shortcutValue) && isset($shortcutLabel))
|
@if(isset($shortcutValue) && isset($shortcutLabel))
|
||||||
<div class="form-check w-100">
|
<div class="form-group mt-n2 mb-0>
|
||||||
<input class="form-check-input"
|
<div class="
|
||||||
|
custom-control
|
||||||
|
custom-checkbox">
|
||||||
|
<input type="hidden"
|
||||||
|
name="datetimepicker2-shortcut"
|
||||||
|
value="0">
|
||||||
|
<input class="form-check-input custom-control-input"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="datetimepicker2-shortcut"
|
id="datetimepicker2-shortcut"
|
||||||
|
name="datetimepicker2-shortcut"
|
||||||
|
value="1"
|
||||||
data-datetimepicker2-shortcut-value="{{ $shortcutValue }}">
|
data-datetimepicker2-shortcut-value="{{ $shortcutValue }}">
|
||||||
<label class="form-check-label"
|
<label class="form-check-label custom-control-label"
|
||||||
for="datetimepicker2-shortcut">{{ $__t($shortcutLabel) }}</label>
|
for="datetimepicker2-shortcut">{{ $__t($shortcutLabel) }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,8 +12,13 @@
|
|||||||
data-next-input-selector="{{ $nextInputSelector }}"
|
data-next-input-selector="{{ $nextInputSelector }}"
|
||||||
data-prefill-by-name="{{ $prefillByName }}"
|
data-prefill-by-name="{{ $prefillByName }}"
|
||||||
data-prefill-by-id="{{ $prefillById }}">
|
data-prefill-by-id="{{ $prefillById }}">
|
||||||
<label for="location_id">{{ $__t('Location') }} <span @if(!empty($hintId))id="{{ $hintId }}" @endif
|
<label for="location_id">{{ $__t('Location') }}
|
||||||
class="small text-muted">{{ $hint }}</span></label>
|
@if(!empty($hint))
|
||||||
|
<i class="fas fa-question-circle"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="{{ $hint }}"></i>
|
||||||
|
@endif
|
||||||
|
</label>
|
||||||
<select class="form-control location-combobox"
|
<select class="form-control location-combobox"
|
||||||
id="location_id"
|
id="location_id"
|
||||||
name="location_id"
|
name="location_id"
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
@php if(empty($additionalGroupCssClasses)) { $additionalGroupCssClasses = ''; } @endphp
|
@php if(empty($additionalGroupCssClasses)) { $additionalGroupCssClasses = ''; } @endphp
|
||||||
@php if(empty($additionalHtmlContextHelp)) { $additionalHtmlContextHelp = ''; } @endphp
|
@php if(empty($additionalHtmlContextHelp)) { $additionalHtmlContextHelp = ''; } @endphp
|
||||||
|
|
||||||
<div class="form-group row mb-0 {{ $additionalGroupCssClasses }}">
|
<div class="form-group row {{ $additionalGroupCssClasses }}">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{!! $additionalHtmlContextHelp !!}
|
{!! $additionalHtmlContextHelp !!}
|
||||||
|
|
||||||
<div class="row my-0">
|
<div class="row">
|
||||||
|
|
||||||
@include('components.numberpicker', array(
|
@include('components.numberpicker', array(
|
||||||
'id' => 'display_amount',
|
'id' => 'display_amount',
|
||||||
@ -18,12 +18,12 @@
|
|||||||
'decimals' => $userSettings['stock_decimal_places_amounts'],
|
'decimals' => $userSettings['stock_decimal_places_amounts'],
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'invalidFeedback' => $__t('This cannot be negative and must be an integral number'),
|
'invalidFeedback' => $__t('This cannot be negative and must be an integral number'),
|
||||||
'additionalGroupCssClasses' => 'col-5 mb-1',
|
'additionalGroupCssClasses' => 'col-sm-5 col-xs-12 my-0',
|
||||||
'additionalCssClasses' => 'input-group-productamountpicker',
|
'additionalCssClasses' => 'input-group-productamountpicker',
|
||||||
'additionalHtmlContextHelp' => ''
|
'additionalHtmlContextHelp' => ''
|
||||||
))
|
))
|
||||||
|
|
||||||
<div class="form-group col-7 mb-1">
|
<div class="col-sm-7 col-xs-12">
|
||||||
<label for="qu_id">{{ $__t('Quantity unit') }}</label>
|
<label for="qu_id">{{ $__t('Quantity unit') }}</label>
|
||||||
<select required
|
<select required
|
||||||
class="form-control input-group-productamountpicker"
|
class="form-control input-group-productamountpicker"
|
||||||
|
@ -18,10 +18,18 @@
|
|||||||
data-disallow-all-product-workflows="{{ BoolToString($disallowAllProductWorkflows) }}"
|
data-disallow-all-product-workflows="{{ BoolToString($disallowAllProductWorkflows) }}"
|
||||||
data-prefill-by-name="{{ $prefillByName }}"
|
data-prefill-by-name="{{ $prefillByName }}"
|
||||||
data-prefill-by-id="{{ $prefillById }}">
|
data-prefill-by-id="{{ $prefillById }}">
|
||||||
<label for="product_id">
|
<label class="w-100"
|
||||||
{{ $__t($label) }} <i class="fas fa-barcode"></i>
|
for="product_id">
|
||||||
|
{{ $__t($label) }}
|
||||||
|
@if(!$disallowAllProductWorkflows)
|
||||||
|
<i class="fas fa-question-circle"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="{{ $__t('Type a new product name or barcode and hit TAB or ENTER to start a workflow') }}"></i>
|
||||||
|
@endif
|
||||||
<span id="barcode-lookup-disabled-hint"
|
<span id="barcode-lookup-disabled-hint"
|
||||||
class="small text-muted d-none"> {{ $__t('Barcode lookup is disabled') }}</span>
|
class="small text-muted d-none float-right"> {{ $__t('Barcode lookup is disabled') }}</span>
|
||||||
|
<i id="barcode-lookup-hint"
|
||||||
|
class="fas fa-barcode float-right mt-1"></i>
|
||||||
</label>
|
</label>
|
||||||
<select class="form-control product-combobox barcodescanner-input"
|
<select class="form-control product-combobox barcodescanner-input"
|
||||||
id="product_id"
|
id="product_id"
|
||||||
@ -47,11 +55,8 @@
|
|||||||
<div class="invalid-feedback">{{ $__t('You have to select a product') }}</div>
|
<div class="invalid-feedback">{{ $__t('You have to select a product') }}</div>
|
||||||
<div id="custom-productpicker-error"
|
<div id="custom-productpicker-error"
|
||||||
class="form-text text-danger d-none"></div>
|
class="form-text text-danger d-none"></div>
|
||||||
@if(!$disallowAllProductWorkflows)
|
|
||||||
<div class="form-text text-info small">{{ $__t('Type a new product name or barcode and hit TAB to start a workflow') }}</div>
|
|
||||||
@endif
|
|
||||||
<div id="flow-info-addbarcodetoselection"
|
<div id="flow-info-addbarcodetoselection"
|
||||||
class="form-text text-muted small d-none"><strong><span id="addbarcodetoselection"></span></strong> {{ $__t('will be added to the list of barcodes for the selected product on submit') }}</div>
|
class="form-text text-info small d-none"><strong><span id="addbarcodetoselection"></span></strong> {{ $__t('will be added to the list of barcodes for the selected product on submit') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@include('components.barcodescanner')
|
@include('components.barcodescanner')
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
data-prefill-by-id="{{ $prefillById }}">
|
data-prefill-by-id="{{ $prefillById }}">
|
||||||
<label for="recipe_id">{{ $__t('Recipe') }}
|
<label for="recipe_id">{{ $__t('Recipe') }}
|
||||||
@if(!empty($hint))
|
@if(!empty($hint))
|
||||||
<i class="fas fa-question-circle"
|
<i class="fas fa-question-circle"
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
title="{{ $hint }}"></i>
|
title="{{ $hint }}"></i>
|
||||||
@endif
|
@endif
|
||||||
|
@ -86,7 +86,9 @@
|
|||||||
'decimals' => $userSettings['stock_decimal_places_prices'],
|
'decimals' => $userSettings['stock_decimal_places_prices'],
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY),
|
'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY),
|
||||||
'additionalHtmlContextHelp' => '<br><span class="small text-muted">' . $__t('This will apply to added products') . '</span>',
|
'additionalHtmlContextHelp' => '<i class="fas fa-question-circle"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="' . $__t('This will apply to added products') . '"></i>',
|
||||||
'invalidFeedback' => $__t('The price cannot be lower than %s', '0'),
|
'invalidFeedback' => $__t('The price cannot be lower than %s', '0'),
|
||||||
'isRequired' => false
|
'isRequired' => false
|
||||||
))
|
))
|
||||||
|
@ -46,9 +46,7 @@
|
|||||||
'nextInputSelector' => '#amount'
|
'nextInputSelector' => '#amount'
|
||||||
))
|
))
|
||||||
|
|
||||||
<div class="row">
|
<div class="form-group mb-1">
|
||||||
<div class="col">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
<input type="hidden"
|
<input type="hidden"
|
||||||
name="only_check_single_unit_in_stock"
|
name="only_check_single_unit_in_stock"
|
||||||
@ -60,8 +58,6 @@
|
|||||||
for="only_check_single_unit_in_stock">{{ $__t('Only check if a single unit is in stock (a different quantity can then be used below)') }}</label>
|
for="only_check_single_unit_in_stock">{{ $__t('Only check if a single unit is in stock (a different quantity can then be used below)') }}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp
|
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp
|
||||||
@php if($mode == 'edit') { $initialQuId = $recipePos->qu_id; } else { $initialQuId = ''; } @endphp
|
@php if($mode == 'edit') { $initialQuId = $recipePos->qu_id; } else { $initialQuId = ''; } @endphp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user