mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 11:56:16 +02:00
35 lines
1011 B
PHP
35 lines
1011 B
PHP
@once
|
|
@push('componentScripts')
|
|
<script src="{{ $U('/viewjs/components/userpicker.js', true) }}?v={{ $version }}"></script>
|
|
@endpush
|
|
@endonce
|
|
|
|
@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>
|
|
{{-- TODO: Select2: dynamic data: users --}}
|
|
<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>
|