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