settings.blade.php 4.25 KB
Newer Older
1
2
3
4
5
@extends('layouts.subPages')

@section('title', $title )

@section('content')
6
	<form id="settings-form" action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}" method="get">
7
8
9
		<h1>{!! trans('settings.head.1') !!}</h1>
		<p id="lead">{!! trans('settings.head.2') !!}</p>
		<h2>{!! trans('settings.allgemein.1') !!}</h2>
10
		<input type="hidden" name="focus" value="angepasst">
Karl's avatar
Karl committed
11
12
13
14

		<container>
			<div class="row">
				<div class="col-sm-6 col-md-4 col-lg-3">
15
					<label class="select-label">@lang("settings.quotes.label")</label>
Karl's avatar
Karl committed
16
					<select class="form-control settings-form-control" name="param_sprueche">
17
18
						<option value="on" selected>@lang("settings.quotes.on")</option>
						<option value="off">@lang("settings.quotes.off")</option>
Karl's avatar
Karl committed
19
20
21
					</select>
				</div>
				<div class="col-sm-6 col-md-4 col-lg-3">
22
					<label class="select-label">@lang("settings.maps.label")</label>
Karl's avatar
Karl committed
23
					<select class="form-control settings-form-control" name="param_maps">
24
25
						<option value="on" selected>@lang("settings.maps.on")</option>
						<option value="off">@lang("settings.maps.off")</option>
Karl's avatar
Karl committed
26
27
28
					</select>
				</div>
				<div class="col-sm-6 col-md-4 col-lg-3">
29
					<label class="select-label">@lang("settings.tab.label")</label>
Karl's avatar
Karl committed
30
					<select class="form-control settings-form-control" name="param_newtab">
31
32
						<option value="on" selected>@lang("settings.tab.new")</option>
						<option value="off">@lang("settings.tab.same")</option>
Karl's avatar
Karl committed
33
34
35
					</select>
				</div>
				<div class="col-sm-6 col-md-4 col-lg-3">
36
					<label class="select-label">{!! trans('settings.language.label') !!}</label>
Karl's avatar
Karl committed
37
					<select class="form-control settings-form-control" name="param_lang">
38
39
40
						<option value="all" @if(App::isLocale('de')) selected @endif >{!! trans('settings.language.all') !!}</option>
						<option value="de">{!! trans('settings.language.de') !!}</option>
						<option value="en" @if(App::isLocale('en')) selected @endif>{!! trans('settings.language.en') !!}</option>
Karl's avatar
Karl committed
41
42
43
44
45
46
47
48
49
					</select>
				</div>
				<div class="col-sm-6 col-md-4 col-lg-3">
					<label class="select-label">{{ trans('settings.request') }}:</label>
					<select class="form-control settings-form-control" name="request">
						<option value="GET" selected>GET</option>
						<option value="POST">POST</option>
					</select>
				</div>
50
51
52
53
54
55
56
				<div class="col-sm-6 col-md-4 col-lg-3">
					<label class="select-label">@lang('settings.autocomplete'):</label>
					<select class="form-control settings-form-control" name="param_autocomplete">
						<option value="on" selected>@lang('settings.autocomplete.on')</option>
						<option value="off">@lang('settings.autocomplete.off')</option>
					</select>
				</div>
Karl's avatar
Karl committed
57
58
59
			</div>
		</container>

60
		<h2>{!! trans('settings.suchmaschinen.1') !!} <small><button type="button" class="btn btn-link allUnchecker">{!! trans('settings.suchmaschinen.2') !!}</button></small></h2>
61
62
		@foreach( $foki as $fokus => $sumas )
			<div class="headingGroup {{ $fokus }}">
63
				<h3 class="fokus-category">
64
					@lang("settings.foki." . $fokus)
65
					<small>
66
						<button type="button" class="checker btn btn-link" data-type="{{ $fokus }}">{!! trans('settings.suchmaschinen.3') !!}</button>
67
68
69
70
71
					</small>
				</h3>
				<div class="row">
					@foreach( $sumas as $name => $data )
						<div class="col-sm-6 col-md-4 col-lg-3">
72
							<div class="checkbox settings-checkbox">
73
								<label>
74
									<input name="param_{{ $name }}" class="focusCheckbox" type="checkbox" />{{ $data['displayName'] }}
75
								</label>
76
								<a class="glyphicon settings-glyphicon glyphicon-link" target="_blank" rel="noopener" href="{{ $data['url'] }}"></a>
77
78
79
							</div>
						</div>
					@endforeach
80
81
				</div>
			</div>
82
		@endforeach
83
84
85
86
		<input id="unten" type="submit" class="btn btn-primary settings-btn" value="{!! trans('settings.speichern.1') !!}">
		<input type="button" class="btn btn-primary settings-btn hidden" id="save" data-href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}" value="{!! trans('settings.speichern.2') !!}">
		<input id="plugin" type="submit" class="btn btn-primary settings-btn" value="{!! trans('settings.speichern.3') !!}">
		<input type="button" class="btn btn-danger settings-btn hidden" id="reset" value="{!! trans('settings.speichern.4') !!}">
87
	</form>
88
@endsection