| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | @push('componentScripts') | 
					
						
							|  |  |  | 	<script src="{{ $U('/viewjs/components/recipepicker.js', true) }}?v={{ $version }}"></script> | 
					
						
							|  |  |  | @endpush | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @php if(empty($prefillByName)) { $prefillByName = ''; } @endphp | 
					
						
							|  |  |  | @php if(empty($prefillById)) { $prefillById = ''; } @endphp | 
					
						
							|  |  |  | @php if(!isset($isRequired)) { $isRequired = true; } @endphp | 
					
						
							|  |  |  | @php if(empty($hint)) { $hint = ''; } @endphp | 
					
						
							| 
									
										
										
										
											2019-09-21 13:08:42 +02:00
										 |  |  | @php if(empty($hintId)) { $hintId = ''; } @endphp | 
					
						
							|  |  |  | @php if(empty($nextInputSelector)) { $nextInputSelector = ''; } @endphp | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | <div class="form-group" data-next-input-selector="{{ $nextInputSelector }}" data-prefill-by-name="{{ $prefillByName }}" data-prefill-by-id="{{ $prefillById }}"> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 	<label for="recipe_id">{{ $__t('Recipe') }}  <span id="{{ $hintId }}" class="small text-muted">{{ $hint }}</span></label> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 	<select class="form-control recipe-combobox" id="recipe_id" name="recipe_id" @if($isRequired) required @endif> | 
					
						
							|  |  |  | 		<option value=""></option> | 
					
						
							|  |  |  | 		@foreach($recipes as $recipe) | 
					
						
							|  |  |  | 			<option value="{{ $recipe->id }}">{{ $recipe->name }}</option> | 
					
						
							|  |  |  | 		@endforeach | 
					
						
							|  |  |  | 	</select> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 	<div class="invalid-feedback">{{ $__t('You have to select a recipe') }}</div> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | </div> |