Added start/end to edit/view screens

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-10-05 16:58:49 -07:00
parent bdfac1a345
commit 0817308822
2 changed files with 28 additions and 0 deletions

View file

@ -358,6 +358,10 @@
<!-- Department --> <!-- Department -->
@include ('partials.forms.edit.department-select', ['translated_name' => trans('general.department'), 'fieldname' => 'department_id']) @include ('partials.forms.edit.department-select', ['translated_name' => trans('general.department'), 'fieldname' => 'department_id'])
@include ('partials.forms.edit.datepicker', ['translated_name' => trans('general.start_date'), 'fieldname' => 'start_date'])
@include ('partials.forms.edit.datepicker', ['translated_name' => trans('general.end_date'), 'fieldname' => 'end_date'])
<!-- remote checkbox --> <!-- remote checkbox -->
<div class="form-group"> <div class="form-group">

View file

@ -343,6 +343,30 @@
</div> </div>
</div> </div>
<!-- start date -->
@if ($user->start_date)
<div class="row">
<div class="col-md-3">
{{ trans('general.start_date') }}
</div>
<div class="col-md-9">
{{ \App\Helpers\Helper::getFormattedDateObject($user->start_date, 'date', false) }}
</div>
</div>
@endif
<!-- end date -->
@if ($user->end_date)
<div class="row">
<div class="col-md-3">
{{ trans('general.end_date') }}
</div>
<div class="col-md-9">
{{ \App\Helpers\Helper::getFormattedDateObject($user->end_date, 'date', false) }}
</div>
</div>
@endif
@if ($user->jobtitle) @if ($user->jobtitle)
<!-- jobtitle --> <!-- jobtitle -->
<div class="row"> <div class="row">