searchbar.blade.php 2.49 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
				<div id="search-lang">
					<select id="input-lang" name="lang">
						<option value="all">Alle Sprachen</option>
10
11
						<option value="de">Deutsch</option>
						<option value="en">English</option>
12
13
14
					</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
15
						<span id="lang-label-code"></span>
16
17
18
					</label>
				</div>
				<div id="search-key">
Karl Hasselbring's avatar
Karl Hasselbring committed
19
					<input id="input-key" type="text" name="key" placeholder="{{ trans ('index.key.placeholder') }}" tabindex="1">
20
					<label id="key-label" for="input-key" data-tooltip="{{ trans ('index.key.tooltip') }}">
21
22
23
						<i class="fa fa-key" aria-hidden="true"></i>
					</label>
				</div>
24
				<div class="search-input">
25
					<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
26
					<button class="hidden" id="search-delete-btn" type="button">
27
						&#xd7;
Karl Hasselbring's avatar
Karl Hasselbring committed
28
					</button>
29
30
31
32
33
34
35
36
				</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">
37
38
39
40
41
42
43
44
45
				<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
46
47
48
49
50
				@if (isset($focusPages) && !empty($focusPages))
					@foreach ($focusPages as $fp)
						<input type="hidden" name={{ $fp }} value="on">
					@endforeach
				@endif
51
52
53
				@if (isset($focus) && !empty($focus))
					<input type="hidden" name="focus" value={{ $focus }}>
				@endif
54
55
56
				@if (isset($theme))
					<input type="hidden" name="theme" value={{ $theme }}>
					@endif
57
			</div>
58
			<div class="search-custom-hidden"></div>
59
60
		</div>
	</form>
61
</fieldset>