mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	Improved form spacing
This commit is contained in:
		| @@ -67,7 +67,7 @@ | ||||
| 		<div id="datetimepicker-earlier-than-info" | ||||
| 			class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div> | ||||
| 		@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"> | ||||
| 				<input type="hidden" | ||||
| 					name="datetimepicker-shortcut" | ||||
|   | ||||
| @@ -63,14 +63,24 @@ | ||||
| 		<div id="datetimepicker2-earlier-than-info" | ||||
| 			class="form-text text-info font-italic d-none">{{ $earlierThanInfoText }}</div> | ||||
| 		@if(isset($shortcutValue) && isset($shortcutLabel)) | ||||
| 		<div class="form-check w-100"> | ||||
| 			<input class="form-check-input" | ||||
| 		<div class="form-group mt-n2 mb-0> | ||||
| 			<div class=" | ||||
| 			custom-control | ||||
| 			custom-checkbox"> | ||||
| 			<input type="hidden" | ||||
| 				name="datetimepicker2-shortcut" | ||||
| 				value="0"> | ||||
| 			<input class="form-check-input custom-control-input" | ||||
| 				type="checkbox" | ||||
| 				id="datetimepicker2-shortcut" | ||||
| 				name="datetimepicker2-shortcut" | ||||
| 				value="1" | ||||
| 				data-datetimepicker2-shortcut-value="{{ $shortcutValue }}"> | ||||
| 			<label class="form-check-label" | ||||
| 				for="datetimepicker2-shortcut">{{ $__t($shortcutLabel) }}</label> | ||||
| 			<label class="form-check-label custom-control-label" | ||||
| 				for="datetimepicker2-shortcut">{{ $__t($shortcutLabel) }} | ||||
| 			</label> | ||||
| 		</div> | ||||
| 		@endif | ||||
| 	</div> | ||||
| 	@endif | ||||
| </div> | ||||
| </div> | ||||
|   | ||||
| @@ -12,8 +12,13 @@ | ||||
| 	data-next-input-selector="{{ $nextInputSelector }}" | ||||
| 	data-prefill-by-name="{{ $prefillByName }}" | ||||
| 	data-prefill-by-id="{{ $prefillById }}"> | ||||
| 	<label for="location_id">{{ $__t('Location') }}  <span @if(!empty($hintId))id="{{ $hintId }}" @endif | ||||
| 			class="small text-muted">{{ $hint }}</span></label> | ||||
| 	<label for="location_id">{{ $__t('Location') }} | ||||
| 		@if(!empty($hint)) | ||||
| 		<i class="fas fa-question-circle" | ||||
| 			data-toggle="tooltip" | ||||
| 			title="{{ $hint }}"></i> | ||||
| 		@endif | ||||
| 	</label> | ||||
| 	<select class="form-control location-combobox" | ||||
| 		id="location_id" | ||||
| 		name="location_id" | ||||
|   | ||||
| @@ -5,11 +5,11 @@ | ||||
| @php if(empty($additionalGroupCssClasses)) { $additionalGroupCssClasses = ''; } @endphp | ||||
| @php if(empty($additionalHtmlContextHelp)) { $additionalHtmlContextHelp = ''; } @endphp | ||||
|  | ||||
| <div class="form-group row mb-0 {{ $additionalGroupCssClasses }}"> | ||||
| <div class="form-group row {{ $additionalGroupCssClasses }}"> | ||||
| 	<div class="col"> | ||||
| 		{!! $additionalHtmlContextHelp !!} | ||||
|  | ||||
| 		<div class="row my-0"> | ||||
| 		<div class="row"> | ||||
|  | ||||
| 			@include('components.numberpicker', array( | ||||
| 			'id' => 'display_amount', | ||||
| @@ -18,12 +18,12 @@ | ||||
| 			'decimals' => $userSettings['stock_decimal_places_amounts'], | ||||
| 			'value' => $value, | ||||
| 			'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', | ||||
| 			'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> | ||||
| 				<select required | ||||
| 					class="form-control input-group-productamountpicker" | ||||
|   | ||||
| @@ -18,10 +18,18 @@ | ||||
| 	data-disallow-all-product-workflows="{{ BoolToString($disallowAllProductWorkflows) }}" | ||||
| 	data-prefill-by-name="{{ $prefillByName }}" | ||||
| 	data-prefill-by-id="{{ $prefillById }}"> | ||||
| 	<label for="product_id"> | ||||
| 		{{ $__t($label) }} <i class="fas fa-barcode"></i>  | ||||
| 	<label class="w-100" | ||||
| 		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" | ||||
| 			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> | ||||
| 	<select class="form-control product-combobox barcodescanner-input" | ||||
| 		id="product_id" | ||||
| @@ -47,11 +55,8 @@ | ||||
| 	<div class="invalid-feedback">{{ $__t('You have to select a product') }}</div> | ||||
| 	<div id="custom-productpicker-error" | ||||
| 		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" | ||||
| 		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> | ||||
|  | ||||
| @include('components.barcodescanner') | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| 	data-prefill-by-id="{{ $prefillById }}"> | ||||
| 	<label for="recipe_id">{{ $__t('Recipe') }} | ||||
| 		@if(!empty($hint)) | ||||
| 		 <i class="fas fa-question-circle" | ||||
| 		<i class="fas fa-question-circle" | ||||
| 			data-toggle="tooltip" | ||||
| 			title="{{ $hint }}"></i> | ||||
| 		@endif | ||||
|   | ||||
| @@ -86,7 +86,9 @@ | ||||
| 			'decimals' => $userSettings['stock_decimal_places_prices'], | ||||
| 			'value' => '', | ||||
| 			'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'), | ||||
| 			'isRequired' => false | ||||
| 			)) | ||||
|   | ||||
| @@ -46,20 +46,16 @@ | ||||
| 			'nextInputSelector' => '#amount' | ||||
| 			)) | ||||
|  | ||||
| 			<div class="row"> | ||||
| 				<div class="col"> | ||||
| 					<div class="form-group"> | ||||
| 						<div class="custom-control custom-checkbox"> | ||||
| 							<input type="hidden" | ||||
| 								name="only_check_single_unit_in_stock" | ||||
| 								value="0"> | ||||
| 							<input @if($mode=='edit' | ||||
| 								&& | ||||
| 								$recipePos->only_check_single_unit_in_stock == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1"> | ||||
| 							<label class="form-check-label custom-control-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 class="form-group mb-1"> | ||||
| 				<div class="custom-control custom-checkbox"> | ||||
| 					<input type="hidden" | ||||
| 						name="only_check_single_unit_in_stock" | ||||
| 						value="0"> | ||||
| 					<input @if($mode=='edit' | ||||
| 						&& | ||||
| 						$recipePos->only_check_single_unit_in_stock == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1"> | ||||
| 					<label class="form-check-label custom-control-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> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user