From e246e32f331333a941d5b14b64dfffa6cc085a3a Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Mon, 25 Mar 2024 10:35:35 +0100 Subject: [PATCH] add updated_at information on edit page --- .../pages/activity_logs/index-list.blade.php | 2 +- .../bo/pages/activity_logs/show.blade.php | 2 +- .../bo/pages/static_pages/edit.blade.php | 39 +++++---- .../pages/static_pages/index-list.blade.php | 2 +- resources/views/bo/pages/users/edit.blade.php | 85 +++++++++++-------- .../views/bo/pages/users/index-list.blade.php | 2 +- 6 files changed, 76 insertions(+), 56 deletions(-) diff --git a/resources/views/bo/pages/activity_logs/index-list.blade.php b/resources/views/bo/pages/activity_logs/index-list.blade.php index 6725e16..bd85e91 100644 --- a/resources/views/bo/pages/activity_logs/index-list.blade.php +++ b/resources/views/bo/pages/activity_logs/index-list.blade.php @@ -48,7 +48,7 @@ @endif - + {{ $activitylogModel->created_at->isoFormat('LLLL') }} diff --git a/resources/views/bo/pages/activity_logs/show.blade.php b/resources/views/bo/pages/activity_logs/show.blade.php index d0ae010..fdd3c5b 100644 --- a/resources/views/bo/pages/activity_logs/show.blade.php +++ b/resources/views/bo/pages/activity_logs/show.blade.php @@ -71,7 +71,7 @@ {{ __('Réalisé le') }} - {{ $activitylogModel->created_at }} + {{ $activitylogModel->created_at }} diff --git a/resources/views/bo/pages/static_pages/edit.blade.php b/resources/views/bo/pages/static_pages/edit.blade.php index d44df70..14c5e0a 100644 --- a/resources/views/bo/pages/static_pages/edit.blade.php +++ b/resources/views/bo/pages/static_pages/edit.blade.php @@ -2,24 +2,33 @@ @section('title', __('Édition d\'un :model', ['model' => __('models.classes.static_page')])) @section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.static_page')])) -@section('breadcrumb', - request()->route()->getName()) +@section('breadcrumb', request()->route()->getName()) @section('content') -
-
- - - - @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $staticPageModel]) +
+
+
+ + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $staticPageModel]) +
+
+
+ +
+
-
-
- +
+
+

+ {{ str(__('validation.attributes.updated_at'))->ucFirst() }} + {{ $staticPageModel->updated_at->isoFormat('LLLL') }} +

diff --git a/resources/views/bo/pages/static_pages/index-list.blade.php b/resources/views/bo/pages/static_pages/index-list.blade.php index 2a3507c..5724bfc 100644 --- a/resources/views/bo/pages/static_pages/index-list.blade.php +++ b/resources/views/bo/pages/static_pages/index-list.blade.php @@ -15,7 +15,7 @@ {{ $staticPageModel->type->label() }} {{ $staticPageModel->title }} - {{ $staticPageModel->updated_at->isoFormat('LLLL') }} + {{ $staticPageModel->updated_at->isoFormat('LLLL') }} @canAny(['update'], $staticPageModel) diff --git a/resources/views/bo/pages/users/edit.blade.php b/resources/views/bo/pages/users/edit.blade.php index be3a6e7..e545f1d 100644 --- a/resources/views/bo/pages/users/edit.blade.php +++ b/resources/views/bo/pages/users/edit.blade.php @@ -5,44 +5,55 @@ @section('breadcrumb', request()->route()->getName()) @section('content') -
-
- - - - @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $userModel]) -
-
-
- @can('isConceptor') - - - - @endcan - @can('duplicate', $userModel) - - - - @endcan - - @can('delete', $userModel) - @csrf - @method('DELETE') - - @endcan -
+ @can('delete', $userModel) + @csrf + @method('DELETE') + + @endcan + +
+
+
+
+

+ {{ str(__('validation.attributes.updated_at'))->ucFirst() }} + {{ $userModel->updated_at->isoFormat('LLLL') }} +

+
diff --git a/resources/views/bo/pages/users/index-list.blade.php b/resources/views/bo/pages/users/index-list.blade.php index 41dd604..71b7a6a 100644 --- a/resources/views/bo/pages/users/index-list.blade.php +++ b/resources/views/bo/pages/users/index-list.blade.php @@ -24,7 +24,7 @@ 'model' => $userModel, ]) - {{ $userModel->updated_at->isoFormat('LLLL') }} + {{ $userModel->updated_at->isoFormat('LLLL') }} @canAny(['delete', 'duplicate', 'update'], $userModel)