searchbar.blade.php 1.78 KB
Newer Older
1
{{-- Don't forget to @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
7
			<div class="search-input-submit">
				<div class="search-input">
8
					<input type="text" name="eingabe" value="@if(isset($eingabe)){{$eingabe}}@endif" required="" @if($class=='startpage-searchbar') autofocus="" @endif autocomplete="{{$autocomplete or 'off'}}" class="form-control" placeholder="{{ trans('index.placeholder') }}">
Karl Hasselbring's avatar
Karl Hasselbring committed
9
10
11
					<button class="hidden" id="search-delete-btn" type="button">
						<i class="fa fa-eraser" aria-hidden="true"></i>
					</button>
12
13
14
15
16
17
18
19
				</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">
20
21
22
23
24
25
26
27
28
				<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
29
30
31
32
33
34
				@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
35
36
37
				@if (isset($theme))
					<input type="hidden" name="theme" value={{ $theme }}>
					@endif
38
			</div>
39
			<div class="search-custom-hidden"></div>
40
41
42
		</div>
	</form>
</fieldset>