Minor code consistency changes, no functional changes
This commit is contained in:
parent
f1316d698d
commit
305ef0f5a3
@ -206,7 +206,7 @@ class HomeController extends Controller
|
||||
}
|
||||
|
||||
return Redirect::to('/')
|
||||
->with('success',[sprintf('%s: %s',__('Deleted'),$dn)]);
|
||||
->with('success',sprintf('%s: %s',__('Deleted'),$dn));
|
||||
}
|
||||
|
||||
public function entry_export(Request $request,string $id): \Illuminate\View\View
|
||||
@ -298,7 +298,7 @@ class HomeController extends Controller
|
||||
$request->get('_userpassword_hash'));
|
||||
|
||||
if (! $o->getDirty())
|
||||
return back()
|
||||
return Redirect::back()
|
||||
->withInput()
|
||||
->with('note',__('No attributes changed'));
|
||||
|
||||
@ -315,7 +315,7 @@ class HomeController extends Controller
|
||||
$o = config('server')->fetch($from_dn);
|
||||
|
||||
if (! $o)
|
||||
return back()
|
||||
return Redirect::back()
|
||||
->withInput()
|
||||
->with('note',__('DN doesnt exist'));
|
||||
|
||||
@ -351,7 +351,7 @@ class HomeController extends Controller
|
||||
$o->{$key} = array_filter($value);
|
||||
|
||||
if (! $dirty=$o->getDirty())
|
||||
return back()
|
||||
return Redirect::back()
|
||||
->withInput()
|
||||
->with('note',__('No attributes changed'));
|
||||
|
||||
|
@ -1,11 +1,5 @@
|
||||
@if(session()->has('success'))
|
||||
<div class="alert alert-success">
|
||||
<h4 class="alert-heading"><i class="fas fa-fw fa-thumbs-up"></i> Success!</h4>
|
||||
<hr>
|
||||
<ul class="square">
|
||||
@foreach(session()->get('success') as $item)
|
||||
<li>{{ $item }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="alert alert-success p-2">
|
||||
<p class="m-0"><i class="fas fa-fw fa-thumbs-up"></i> {{ session()->pull('success') }}</p>
|
||||
</div>
|
||||
@endif
|
@ -51,9 +51,10 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<x-success/>
|
||||
<x-updated/>
|
||||
<x-note/>
|
||||
<x-error/>
|
||||
<x-updated/>
|
||||
<x-failed/>
|
||||
@endsection
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user