Merge pull request #1234 from batuhawk/master

Portal access and report long description updated
This commit is contained in:
Batuhan Baş 2020-02-07 10:53:24 +03:00 committed by GitHub
commit ee33a211d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View File

@ -66,7 +66,15 @@ class Profile extends Controller
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);
}
/**

View File

@ -56,7 +56,7 @@
</div>
<p class="mt-3 mb-0 text-sm">
<a class="text-default" href="{{ route('reports.show', $report->id) }}">
<span class="text-nowrap">{{ $report->description }}</span>
<span class="pre">{{ $report->description }}</span>
</a>
</p>
</div>

View File

@ -105,7 +105,7 @@
<div class="dropdown-header noti-title">
<h6 class="text-overflow m-0">{{ trans('general.welcome') }}</h6>
</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>
<span>{{ trans('auth.profile') }}</span>
</a>

View File

@ -5,8 +5,9 @@
@section('content')
<div class="card">
{!! Form::model($user, [
'route' => 'portal.profile.update',
'id' => 'profile',
'method' => 'PATCH',
'route' => ['portal.profile.update', $user->id],
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,