mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 10:46:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			859 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			859 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @push('componentScripts')
 | |
| 	<script src="{{ $U('/viewjs/components/userpicker.js', true) }}?v={{ $version }}"></script>
 | |
| @endpush
 | |
| 
 | |
| @php if(empty($prefillByUsername)) { $prefillByUsername = ''; } @endphp
 | |
| @php if(empty($prefillByUserId)) { $prefillByUserId = ''; } @endphp
 | |
| @php if(!isset($nextInputSelector)) { $nextInputSelector = ''; } @endphp
 | |
| 
 | |
| <div class="form-group" data-next-input-selector="{{ $nextInputSelector }}" data-prefill-by-username="{{ $prefillByUsername }}" data-prefill-by-user-id="{{ $prefillByUserId }}">
 | |
| 	<label for="user_id">{{ $__t($label) }}</label>
 | |
| 	<select class="form-control user-combobox" id="user_id" name="user_id">
 | |
| 		<option value=""></option>
 | |
| 		@foreach($users as $user)
 | |
| 			<option data-additional-searchdata="{{ $user->username }}" value="{{ $user->id }}">{{ GetUserDisplayName($user) }}</option>
 | |
| 		@endforeach
 | |
| 	</select>
 | |
| </div>
 |