Merge pull request #1234 from batuhawk/master
Portal access and report long description updated
This commit is contained in:
commit
ee33a211d8
@ -66,7 +66,15 @@ class Profile extends Controller
|
|||||||
|
|
||||||
flash($message)->success();
|
flash($message)->success();
|
||||||
|
|
||||||
return redirect()->route('portal.profile.edit');
|
$response = [
|
||||||
|
'success' => true,
|
||||||
|
'error' => false,
|
||||||
|
'data' => null,
|
||||||
|
'message' => '',
|
||||||
|
'redirect' => route('portal.profile.edit', $user->id),
|
||||||
|
];
|
||||||
|
|
||||||
|
return response()->json($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="mt-3 mb-0 text-sm">
|
<p class="mt-3 mb-0 text-sm">
|
||||||
<a class="text-default" href="{{ route('reports.show', $report->id) }}">
|
<a class="text-default" href="{{ route('reports.show', $report->id) }}">
|
||||||
<span class="text-nowrap">{{ $report->description }}</span>
|
<span class="pre">{{ $report->description }}</span>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
<div class="dropdown-header noti-title">
|
<div class="dropdown-header noti-title">
|
||||||
<h6 class="text-overflow m-0">{{ trans('general.welcome') }}</h6>
|
<h6 class="text-overflow m-0">{{ trans('general.welcome') }}</h6>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('portal.profile.edit') }}" class="dropdown-item">
|
<a href="{{ route('portal.profile.edit', $user->id) }}" class="dropdown-item">
|
||||||
<i class="fas fa-user"></i>
|
<i class="fas fa-user"></i>
|
||||||
<span>{{ trans('auth.profile') }}</span>
|
<span>{{ trans('auth.profile') }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -5,8 +5,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card">
|
<div class="card">
|
||||||
{!! Form::model($user, [
|
{!! Form::model($user, [
|
||||||
'route' => 'portal.profile.update',
|
|
||||||
'id' => 'profile',
|
'id' => 'profile',
|
||||||
|
'method' => 'PATCH',
|
||||||
|
'route' => ['portal.profile.update', $user->id],
|
||||||
'@submit.prevent' => 'onSubmit',
|
'@submit.prevent' => 'onSubmit',
|
||||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user