Skip to content
Snippets Groups Projects
Commit 1bf12c76 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Changed positioning of subpages

parent b83c8c88
No related branches found
No related tags found
2 merge requests!1419Development,!1417Resolve "Integrate some search settings"
<?php
namespace App\Http\Controllers;
use \Illuminate\Http\Request;
class SettingsController extends Controller
{
public function index(Request $request)
{
$fokus = $request->input('fokus', '');
if (empty($fokus)) {
return redirect('/');
} else {
$fokus = trans('index.foki.' . $fokus);
}
return view('settings.index')
->with('title', trans('titles.settings', ['fokus' => $fokus]))
->with('fokus', $fokus);
}
}
...@@ -24,4 +24,5 @@ return [ ...@@ -24,4 +24,5 @@ return [
'asso' => 'Assoziator - MetaGer', 'asso' => 'Assoziator - MetaGer',
'plugin' => 'Plugin - MetaGer', 'plugin' => 'Plugin - MetaGer',
'key' => 'Mitgliederschlüssel - MetaGer', 'key' => 'Mitgliederschlüssel - MetaGer',
'settings' => 'Sucheinstellungen (:fokus)',
]; ];
...@@ -574,7 +574,7 @@ a { ...@@ -574,7 +574,7 @@ a {
margin-top: 4px; margin-top: 4px;
text-align: center; text-align: center;
>a { >form>button {
color: #777; color: #777;
&:hover { &:hover {
color: red; color: red;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
flex-grow: 1; flex-grow: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; margin-top: 5vh;
@media(max-width: @main-content-width) { @media(max-width: @main-content-width) {
width: 100%; width: 100%;
} }
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
width: 30px; width: 30px;
height: 30px; height: 30px;
align-items: center; align-items: center;
justify-content: center;
display: none; display: none;
&:hover{ &:hover{
color: red; color: red;
...@@ -47,6 +46,8 @@ ...@@ -47,6 +46,8 @@
} }
.startpage #main-content { .startpage #main-content {
justify-content: center;
margin-top: 0;
@media(max-width: @screen-mobile){ @media(max-width: @screen-mobile){
justify-content: start; justify-content: start;
margin-top: 20vh; margin-top: 20vh;
......
...@@ -39,7 +39,11 @@ ...@@ -39,7 +39,11 @@
<div class="scrollfade-right"></div> <div class="scrollfade-right"></div>
</div> </div>
<div id="settings"> <div id="settings">
<a href="#">Sucheinstellungen</a> <form action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), route('settings')) }}" method="post">
<input type="hidden" name="fokus" value="{{ $metager->getFokus() }}">
<input type="hidden" name="url" value="{{ url()->full() }}">
<button type="submit">Sucheinstellungen</button>
</form>
</div> </div>
</div> </div>
@endif @endif
@extends('layouts.subPages')
@section('title', $title )
@section('content')
<div class="card-heavy">
<h2>Sucheinstellungen ({{ $fokus }})</h2>
<p>Hier können Sie Sucheinstellungen für Ihre MetaGer Suche im Fokus {{ $fokus }} vornehmen. Diese bleiben solange gespeichert, wie Sie Cookies im Browser speichern.</p>
</div>
@endsection
...@@ -9,5 +9,7 @@ Route::group( ...@@ -9,5 +9,7 @@ Route::group(
Route::get('meta/key', "KeyController@index"); Route::get('meta/key', "KeyController@index");
Route::post('meta/key', 'KeyController@setKey'); Route::post('meta/key', 'KeyController@setKey');
Route::post('meta/key/remove', 'KeyController@removeKey'); Route::post('meta/key/remove', 'KeyController@removeKey');
Route::post('meta/settings', 'SettingsController@index')->name('settings');
} }
); );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment