searchbar.blade.php 1.59 KB
Newer Older
1
{{-- Don't forget <script src="{{ mix('js/searchbar.js') }}"></script> --}}
2
<fieldset>
3
	<form id="searchForm" method={{ $request }} action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/meta/meta.ger3 ") }}" accept-charset="UTF-8">
Dominik Hebeler's avatar
Dominik Hebeler committed
4
		<div class="searchbar {{$class ?? ''}}">
5
			<div class="search-input-submit">
6
				<div id="search-key">
7
					<a id="key-link" @if(isset($apiAuthorized) && $apiAuthorized)class="authorized" @else class="unauthorized"@endif href="{{ action('KeyController@index', ['redirUrl' => url()->full() ]) }}" data-tooltip="{{ trans ('index.key.tooltip') }}">
8
						<i class="fa fa-key" aria-hidden="true"></i>
Dominik Hebeler's avatar
Dominik Hebeler committed
9
					</a>
10
				</div>
11
				<div class="search-input">
12
					<input type="search" name="eingabe" value="@if(isset($eingabe)){{$eingabe}}@endif" required=""  @if(\Request::is('/')) autofocus @endif autocomplete="off" class="form-control" placeholder="{{ trans('index.placeholder') }}" tabindex="2">
Dominik Hebeler's avatar
Dominik Hebeler committed
13
					<button id="search-delete-btn" type="button">
14
						&#xd7;
Karl Hasselbring's avatar
Karl Hasselbring committed
15
					</button>
16
17
18
19
20
21
22
23
				</div>
				<div class="search-submit" id="submit-inputgroup">
					<button type="submit">
						<i class="fa fa-search" aria-hidden="true"></i>
					</button>
				</div>
			</div>
			<div class="search-hidden">
24
25
26
27
28
				@if (isset($option_values))
					@foreach($option_values as $option => $value)
						<input type="hidden" name={{ $option }} value={{ $value }}>
					@endforeach
				@endif
29
30
31
				@if (isset($focus) && !empty($focus))
					<input type="hidden" name="focus" value={{ $focus }}>
				@endif
32
			</div>
33
			<div class="search-custom-hidden"></div>
34
35
		</div>
	</form>
36
</fieldset>