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