Skip to content

Commit

Permalink
Formatted blade
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Jan 27, 2025
1 parent 87cafd5 commit 008cf8c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Templates/timetable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ class="timetable-to-today btn btn-default">{{ __('timeTable.button_show_this_wee
$hoursLeft = $timesheetDate[0]['hourRemaining'] ?? null;
$description = $timesheetDate[0]['description'] ?? null;
$requireTimeRegistrationComment = $requireTimeRegistrationComment ?? 0;
$isMissingDescription = isset($hours) & trim($description) === '' && $requireTimeRegistrationComment !== 0;
$isMissingDescription = isset($hours) & (trim($description) === '') && $requireTimeRegistrationComment !== 0;
// accumulate hours
if ($hours) {
if (isset($totalHours[$weekDateAccessor])) {
Expand All @@ -101,7 +101,7 @@ class="timetable-to-today btn btn-default">{{ __('timeTable.button_show_this_wee
}
$rowTotal += $hours; // add to row total
}
$weekendClass = isset($weekDate) && $weekDate->isWeekend() ? 'weekend' : '';
$todayClass = isset($weekDate) && $weekDate->isToday() ? 'today' : '';
$newWeekClass = isset($weekDate) && $weekDate->isMonday() ? 'new-week' : ''; // Add new-week class for Mondays
Expand Down Expand Up @@ -208,7 +208,8 @@ class="timetable-edit-entry {{ $weekendClass }} {{ $todayClass }} {{ $newWeekCla
{{-- Description input --}}
<div class="description-wrapper">
<textarea type="text" id="modal-description" name="timesheet-description"
placeholder="{{ __('timeTable.description') }}" {{ (int) $requireTimeRegistrationComment === 1 ? 'required' : '' }}></textarea>
placeholder="{{ __('timeTable.description') }}"
{{ (int) $requireTimeRegistrationComment === 1 ? 'required' : '' }}></textarea>
</div>
<div class="timesheet-date-move-notifier hidden"><small><i class="fa fa-exclamation-circle"></i>
{{ __('timeTable.about_to_move') }}</small></div>
Expand Down

0 comments on commit 008cf8c

Please sign in to comment.