Commit 1bf12c76 authored by Dominik Hebeler's avatar Dominik Hebeler

Changed positioning of subpages

parent b83c8c88
<?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 [
'asso' => 'Assoziator - MetaGer',
'plugin' => 'Plugin - MetaGer',
'key' => 'Mitgliederschlüssel - MetaGer',
'settings' => 'Sucheinstellungen (:fokus)',
];
......@@ -574,7 +574,7 @@ a {
margin-top: 4px;
text-align: center;
>a {
>form>button {
color: #777;
&:hover {
color: red;
......
......@@ -6,7 +6,7 @@
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
margin-top: 5vh;
@media(max-width: @main-content-width) {
width: 100%;
}
......@@ -33,7 +33,6 @@
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
display: none;
&:hover{
color: red;
......@@ -47,6 +46,8 @@
}
.startpage #main-content {
justify-content: center;
margin-top: 0;
@media(max-width: @screen-mobile){
justify-content: start;
margin-top: 20vh;
......
......@@ -39,7 +39,11 @@
<div class="scrollfade-right"></div>
</div>
<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>
@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(
Route::get('meta/key', "KeyController@index");
Route::post('meta/key', 'KeyController@setKey');
Route::post('meta/key/remove', 'KeyController@removeKey');
Route::post('meta/settings', 'SettingsController@index')->name('settings');
}
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment