create-focus-modal.blade.php 2 KB
Newer Older
1
<input type="checkbox" id="show-create-focus" class="focus-input">
2
<div id="create-focus-modal" tab-index="-1" role="dialog">
3
4
5
6
	<div id="foki-modal-dialog">
		<div id="foki-modal-content">
			<div id="foki-modal-header">
				<label type="button" id="close-create-focus" role= "button" for="show-create-focus"></label>
7
8
9
10
11
12
				<h4>
					@lang("index.focus-creator.head")
				</h4>
				<p class="text-muted">@lang("index.focus-creator.description")</p>
			</div>
			<div class="modal-body">
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
				<input type="hidden" form="searchForm" name="focus" @if(isset($focusPages) && !empty($focusPages)) value="focus_custom"@else value="web" @endif 
																								id="custom-focus-flag" class="focus-input">
				@foreach( App\Http\Controllers\FokiLoader::loadFoki() as $fokus => $sumas )
					<div class="headingGroup {{ $fokus }}">
						<input type="checkbox" id="toggle-{{ $fokus }}-dropdown" class="focus-dropdown-toggle">
						<label for="toggle-{{ $fokus }}-dropdown" class="focus-category focus-dropdown-label h3">
							@lang("settings.foki." . $fokus)
						</label>
						<div class="row">
							@foreach( $sumas as $name => $data )
							<div class="col-sm-6 col-md-4 col-lg-3">
								<div class="checkbox settings-checkbox">
									<label>
										<input type="checkbox" form="searchForm" name="engine_{{ strtolower($name) }}" class="focusCheckbox" @if(isset($focusPages) && in_array('engine_{{ strtolower($name) }}', $focusPages)) checked @endif>
										{{ $data['displayName'] }}
										<a class="settings-icon" target="_blank" rel="noopener" href="{{ $data['url'] }}">
											<i class="fa fa-link" aria-hidden="true"></i>
										</a>
									</label>
32
								</div>
33
							</div>
34
							@endforeach
35
						</div>
36
					</div>
37
38
39
40
41
42
43
44
				@endforeach
				<div class="clearfix">
					<div class="settings-modal-buttons pull-right">
						<button type="submit" form="searchForm" class="save-focus-btn btn btn-primary">
							@lang('index.focus-creator.save')
						</button>
					</div>
				</div>
45
46
47
48
			</div>
		</div>
	</div>
</div>