searchbar.blade.php 2.48 KB
Newer Older
1
{{-- Don't forget @include('modals.create-focus-modal') --}}
Dominik Hebeler's avatar
Dominik Hebeler committed
2
{{-- Don't forget <script type="text/javascript" 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
16
17
18
				<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>
					</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">
Karl Hasselbring's avatar
Karl Hasselbring committed
25
					<input type="text" name="eingabe" value="@if(isset($eingabe)){{$eingabe}}@endif" required=""  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
51
				@if (isset($focusPages) && !empty($focusPages))
					<input type="hidden" name="focus" value="focus_custom">	
					@foreach ($focusPages as $fp)
						<input type="hidden" name={{ $fp }} value="on">
					@endforeach
				@endif
52
53
54
				@if (isset($theme))
					<input type="hidden" name="theme" value={{ $theme }}>
					@endif
55
			</div>
56
			<div class="search-custom-hidden"></div>
57
58
59
		</div>
	</form>
</fieldset>