Enable returning to form frames by the existance of a frame input

This commit is contained in:
Deon George 2024-01-13 13:20:20 +11:00
parent b92157a987
commit 0f9bb07d21
2 changed files with 9 additions and 13 deletions

View File

@ -181,10 +181,17 @@ class HomeController extends Controller
});
if (old('dn'))
return view('dn')
return view('frame')
->with('subframe','dn')
->with('bases',$bases)
->with('o',config('server')->fetch($dn=Crypt::decryptString(old('dn'))))
->with('dn',$dn);
elseif (old('frame'))
return view('frame')
->with('subframe',old('frame'))
->with('bases',$bases);
else
return view('home')
->with('bases',$bases)

View File

@ -1,18 +1,7 @@
@extends('architect::layouts.app')
{{--
@section('htmlheader_title')
@lang('Home')
@endsection
@section('page_title')
@endsection
@section('page_icon')
@endsection
--}}
@section('main-content')
@include('frames.dn')
@include('frames.'.$subframe)
@endsection
@section('page-scripts')