searchbar.blade.php 3.13 KB
Newer Older
1
2
{{-- Don't forget to @include('modals.create-focus-modal') --}}
{{-- Don't forget <script type="text/javascript" src="{{ elixir('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
6
7
8
9
10
11
12
13
14
15
		<div class="searchbar {{$class or ''}}">
			<div class="search-focus-selector">
				<select id="focus-select" name="focus" style="font-family: FontAwesome, sans-serif;">
					<option value="web" style="font-family: FontAwesome, sans-serif;" selected>&#xf0ac; Websuche</option>
					<option value="nachrichten" style="font-family: FontAwesome, sans-serif;">&#xf0a1; Nachrichtensuche</option>
					<option value="wissenschaft" style="font-family: FontAwesome, sans-serif;">&#xf15c; Wissenschaftssuche</option>
					<option value="produktsuche" style="font-family: FontAwesome, sans-serif;">&#xf07a; Produktsuche</option>
					<option value="maps" style="font-family: FontAwesome, sans-serif;">&#xf279; Kartensuche</option>
				</select>
			</div>
			<div class="search-add-focus js-only">
16
				<button type="button" id="addFocusBtn">
17
18
					<i class="fa fa-plus"></i>
				</button>
19
20
21
22
23
24
25
				<div class="searchbar-tooltip">
					<div class="searchbar-tooltip-arrow">
					</div>
					<div class="searchbar-tooltip-content">
					<p>{{{ trans('index.add-focus') }}}</p>
					</div>
				</div>
26
27
28
29
			</div>
			<div class="search-edit-focus js-only">
				<button type="button" id="editFocusBtn" title="@lang('index.edit-focus')">
					<i class="fa fa-wrench"></i>
30
31
32
33
34
35
36
				</button><div class="searchbar-tooltip">
					<div class="searchbar-tooltip-arrow">
					</div>
					<div class="searchbar-tooltip-content">
					<p>{{{ trans('index.edit-focus') }}}</p>
					</div>
				</div>
37
38
			</div>
			<div class="search-settings">
39
				<a id="settings-btn" class="mutelink btn btn-default" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "settings ") }}">
40
41
42
43
44
					<i class="fa fa-cog" aria-hidden="true"></i>
				</a>
			</div>
			<div class="search-input-submit">
				<div class="search-input">
45
					<input type="text" name="eingabe" required="" autofocus="" autocomplete="{{$autocomplete or 'off'}}" class="form-control"placeholder="{{ trans('index.placeholder') }}">
46
47
48
49
50
51
52
53
				</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">
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
				<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
				@if (isset($focusPages))
					@foreach ($focusPages as $fp)
						<input type="hidden" name={{ $fp }} value="on">
					@endforeach
				@endif
				@if (isset($theme))
					<input type="hidden" name="theme" value={{ $theme }}>
					@endif
71
			</div>
72
			<div class="custom-search-hidden"></div>
73
74
75
		</div>
	</form>
</fieldset>