2022-05-14 17:05:29 +02:00
|
|
|
<div class="dropdown-search" components="dropdown dropdown-search user-select"
|
2020-12-31 18:25:20 +01:00
|
|
|
option:dropdown-search:url="/search/users/select"
|
|
|
|
>
|
2021-01-01 19:31:01 +01:00
|
|
|
<input refs="user-select@input" type="hidden" name="{{ $name }}" value="{{ $user->id ?? '' }}">
|
2020-12-31 18:25:20 +01:00
|
|
|
<div refs="dropdown@toggle"
|
2022-05-14 17:05:29 +02:00
|
|
|
class="dropdown-search-toggle-select input-base"
|
2020-12-31 18:25:20 +01:00
|
|
|
aria-haspopup="true" aria-expanded="false" tabindex="0">
|
2022-05-14 17:05:29 +02:00
|
|
|
<div refs="user-select@user-info" class="dropdown-search-toggle-select-label flex-container-row items-center">
|
2021-01-01 19:31:01 +01:00
|
|
|
@if($user)
|
2022-05-14 17:05:29 +02:00
|
|
|
<img class="avatar small mr-m" src="{{ $user->getAvatar(30) }}" width="30" height="30" alt="{{ $user->name }}">
|
2021-01-01 19:31:01 +01:00
|
|
|
<span>{{ $user->name }}</span>
|
|
|
|
@else
|
|
|
|
<span>{{ trans('settings.users_none_selected') }}</span>
|
|
|
|
@endif
|
2020-12-31 18:25:20 +01:00
|
|
|
</div>
|
2022-05-14 17:05:29 +02:00
|
|
|
<span class="dropdown-search-toggle-select-caret">
|
2020-12-31 18:25:20 +01:00
|
|
|
@icon('caret-down')
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div refs="dropdown@menu" class="dropdown-search-dropdown card" role="menu">
|
|
|
|
<div class="dropdown-search-search">
|
|
|
|
@icon('search')
|
|
|
|
<input refs="dropdown-search@searchInput"
|
|
|
|
aria-label="{{ trans('common.search') }}"
|
|
|
|
autocomplete="off"
|
|
|
|
placeholder="{{ trans('common.search') }}"
|
|
|
|
type="text">
|
|
|
|
</div>
|
|
|
|
<div refs="dropdown-search@loading" class="text-center">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('common.loading-icon')
|
2020-12-31 18:25:20 +01:00
|
|
|
</div>
|
|
|
|
<div refs="dropdown-search@listContainer" class="dropdown-search-list"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|