searchbar.blade.php 2.65 KB
Newer Older
1
{{-- Don't forget @include('modals.create-focus-modal') --}}
2
{{-- Don't forget <script src="{{ mix('js/searchbar.js') }}"></script> --}}
3
<fieldset>
4
	<form id="searchForm" method={{ $request }} action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/meta/meta.ger3 ") }}" accept-charset="UTF-8">
5
		<div class="searchbar {{$class or ''}}">
6
			<div class="search-input-submit">
7
8
9
10
11
12
13
14
15
				<div id="search-lang">
					<select id="input-lang" name="lang">
						<option value="all">Alle Sprachen</option>
						@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
							<option value="{{$localeCode}}">{{{ $properties['native'] }}}</option>
						@endforeach
					</select>
					<label id="lang-label" for="input-lang" data-tooltip="{{ trans ('index.lang.tooltip') }}">
						<i class="fa fa-globe" aria-hidden="true"></i>
Karl Hasselbring's avatar
Karl Hasselbring committed
16
						<span id="lang-label-code"></span>
17
18
19
					</label>
				</div>
				<div id="search-key">
Karl Hasselbring's avatar
Karl Hasselbring committed
20
					<input id="input-key" type="text" name="key" placeholder="{{ trans ('index.key.placeholder') }}" tabindex="1">
21
					<label id="key-label" for="input-key" data-tooltip="{{ trans ('index.key.tooltip') }}">
22
23
24
						<i class="fa fa-key" aria-hidden="true"></i>
					</label>
				</div>
25
				<div class="search-input">
26
					<input type="text" name="eingabe" value="@if(isset($eingabe)){{$eingabe}}@endif" required=""  @if(\Request::is('/')) autofocus @endif autocomplete="{{$autocomplete or 'off'}}" class="form-control" placeholder="{{ trans('index.placeholder') }}" tabindex="2">
Karl Hasselbring's avatar
Karl Hasselbring committed
27
					<button class="hidden" id="search-delete-btn" type="button">
28
						&#xd7;
Karl Hasselbring's avatar
Karl Hasselbring committed
29
					</button>
30
31
32
33
34
35
36
37
				</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">
38
39
40
41
42
43
44
45
46
				<input type="hidden" name="encoding" value="utf8">
				@if (isset($option_values))
					@foreach($option_values as $option => $value)
						<input type="hidden" name={{ $option }} value={{ $value }}>
					@endforeach
				@endif
				@if (isset($option_values))
					<input type="hidden" name="time" value={{ $time }}>
				@endif
47
				@if (isset($focusPages) && !empty($focusPages))
48
					<input type="hidden" name="focus" value="focus_custom">
49
50
51
52
					@foreach ($focusPages as $fp)
						<input type="hidden" name={{ $fp }} value="on">
					@endforeach
				@endif
53
54
55
				@if (isset($focus) && !empty($focus))
					<input type="hidden" name="focus" value={{ $focus }}>
				@endif
56
57
58
				@if (isset($theme))
					<input type="hidden" name="theme" value={{ $theme }}>
					@endif
59
			</div>
60
			<div class="search-custom-hidden"></div>
61
62
		</div>
	</form>
63
</fieldset>