add updated_at information on edit page
This commit is contained in:
parent
3d0bc41ba0
commit
e246e32f33
6 changed files with 76 additions and 56 deletions
|
|
@ -48,7 +48,7 @@
|
|||
@endif
|
||||
</td>
|
||||
<td class="bg-{{ $activitylogModel->event->bootstrapClass() }}-subtle text-center align-middle">
|
||||
<span class="badge bg-secondary">
|
||||
<span class="badge text-bg-secondary">
|
||||
{{ $activitylogModel->created_at->isoFormat('LLLL') }}
|
||||
</span>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
<tr class="border-bottom">
|
||||
<td class="w-50 fw-bold text-center align-middle">{{ __('Réalisé le') }}</td>
|
||||
<td class="w-50 text-center align-middle">
|
||||
<span class="badge bg-secondary">{{ $activitylogModel->created_at }}</span>
|
||||
<span class="badge text-bg-secondary">{{ $activitylogModel->created_at }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
<div class="d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap pb-3">
|
||||
<div class="d-flex align-items-start flex-row">
|
||||
<a class="btn btn-primary text-decoration-none m-0" data-bs-toggle="tooltip" href="{{ route('bo.static_pages.index') }}"
|
||||
title="{{ __('crud.helpers.list_all', ['model' => Str::plural(__('models.classes.static_page'))]) }}">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
</a>
|
||||
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $staticPageModel])
|
||||
<div class="row pb-3">
|
||||
<div class="col-12 d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap">
|
||||
<div class="d-flex align-items-start flex-row">
|
||||
<a class="btn btn-primary text-decoration-none m-0" data-bs-toggle="tooltip" href="{{ route('bo.static_pages.index') }}"
|
||||
title="{{ __('crud.helpers.list_all', ['model' => Str::plural(__('models.classes.static_page'))]) }}">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
</a>
|
||||
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $staticPageModel])
|
||||
</div>
|
||||
<div class="mb-md-0 mb-2">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-primary" id="formSubmitClone" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ __('crud.helpers.save_model', ['model' => __('models.classes.static_page')]) }}">
|
||||
{{ Str::ucfirst(__('crud.actions.save')) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-md-0 mb-2">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-primary" id="formSubmitClone" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ __('crud.helpers.save_model', ['model' => __('models.classes.static_page')]) }}">
|
||||
{{ Str::ucfirst(__('crud.actions.save')) }}
|
||||
</button>
|
||||
<div class="col-12 overflow-hidden mt-3">
|
||||
<div class="bg-body-tertiary rounded-3 p-3">
|
||||
<p class="m-0">
|
||||
{{ str(__('validation.attributes.updated_at'))->ucFirst() }}
|
||||
<span class="fw-bold">{{ $staticPageModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<td class="text-center align-middle">{{ $staticPageModel->type->label() }}</td>
|
||||
<td class="text-center align-middle">{{ $staticPageModel->title }}</td>
|
||||
<td class="text-center align-middle">
|
||||
<span class="badge bg-secondary">{{ $staticPageModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
<span class="badge text-bg-secondary">{{ $staticPageModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
</td>
|
||||
<td class="text-end align-middle">
|
||||
@canAny(['update'], $staticPageModel)
|
||||
|
|
|
|||
|
|
@ -5,44 +5,55 @@
|
|||
@section('breadcrumb', request()->route()->getName())
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap pb-3">
|
||||
<div class="d-flex align-items-start flex-row">
|
||||
<a class="btn btn-primary text-decoration-none m-0" data-bs-toggle="tooltip" href="{{ route('bo.users.index') }}"
|
||||
title="{{ __('crud.helpers.list_all', ['model' => Str::plural(__('models.classes.user'))]) }}">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
</a>
|
||||
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $userModel])
|
||||
</div>
|
||||
<div class="mb-md-0 mb-2">
|
||||
<form class="btn-group confirmDeleteTS" action="{{ route('bo.users.destroy', $userModel) }}" method="POST"
|
||||
novalidate>
|
||||
@can('isConceptor')
|
||||
<a class="btn btn-info" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.activity_logs.user', ['user' => $userModel]) }}"
|
||||
title="{{ str(trans_choice('models.classes.activity_log', 1))->ucfirst() }}">
|
||||
<i class="fa-solid fa-clock-rotate-left"></i>
|
||||
</a>
|
||||
@endcan
|
||||
@can('duplicate', $userModel)
|
||||
<a class="btn btn-secondary" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.users.duplicate', ['user' => $userModel]) }}"
|
||||
title="{{ Str::ucfirst(__('crud.actions.duplicate')) }}">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
</a>
|
||||
@endcan
|
||||
<button class="btn btn-primary" id="formSubmitClone" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ __('crud.helpers.save_model', ['model' => __('models.classes.user')]) }}">
|
||||
{{ Str::ucfirst(__('crud.actions.save')) }}
|
||||
</button>
|
||||
@can('delete', $userModel)
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button class="btn btn-danger" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ Str::ucfirst(__('crud.actions.delete')) }}">
|
||||
<i class="fa-solid fa-trash"></i>
|
||||
<div class="row pb-3">
|
||||
<div class="col-12 d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap">
|
||||
<div class="d-flex align-items-start flex-row">
|
||||
<a class="btn btn-primary text-decoration-none m-0" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.users.index') }}"
|
||||
title="{{ __('crud.helpers.list_all', ['model' => Str::plural(__('models.classes.user'))]) }}">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
</a>
|
||||
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $userModel])
|
||||
</div>
|
||||
<div class="mb-md-0 mb-2">
|
||||
<form class="btn-group confirmDeleteTS" action="{{ route('bo.users.destroy', $userModel) }}" method="POST"
|
||||
novalidate>
|
||||
@can('isConceptor')
|
||||
<a class="btn btn-info" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.activity_logs.user', ['user' => $userModel]) }}"
|
||||
title="{{ str(trans_choice('models.classes.activity_log', 1))->ucfirst() }}">
|
||||
<i class="fa-solid fa-clock-rotate-left"></i>
|
||||
</a>
|
||||
@endcan
|
||||
@can('duplicate', $userModel)
|
||||
<a class="btn btn-secondary" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.users.duplicate', ['user' => $userModel]) }}"
|
||||
title="{{ Str::ucfirst(__('crud.actions.duplicate')) }}">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
</a>
|
||||
@endcan
|
||||
<button class="btn btn-primary" id="formSubmitClone" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ __('crud.helpers.save_model', ['model' => __('models.classes.user')]) }}">
|
||||
{{ Str::ucfirst(__('crud.actions.save')) }}
|
||||
</button>
|
||||
@endcan
|
||||
</form>
|
||||
@can('delete', $userModel)
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button class="btn btn-danger" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ Str::ucfirst(__('crud.actions.delete')) }}">
|
||||
<i class="fa-solid fa-trash"></i>
|
||||
</button>
|
||||
@endcan
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 overflow-hidden mt-3">
|
||||
<div class="bg-body-tertiary rounded-3 p-3">
|
||||
<p class="m-0">
|
||||
{{ str(__('validation.attributes.updated_at'))->ucFirst() }}
|
||||
<span class="fw-bold">{{ $userModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('bo.users.update', $userModel) }}" method="POST" enctype="multipart/form-data">
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
'model' => $userModel,
|
||||
])
|
||||
<td class="text-center align-middle">
|
||||
<span class="badge bg-secondary">{{ $userModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
<span class="badge text-bg-secondary">{{ $userModel->updated_at->isoFormat('LLLL') }}</span>
|
||||
</td>
|
||||
<td class="text-end align-middle">
|
||||
@canAny(['delete', 'duplicate', 'update'], $userModel)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue