Fix formatting

This commit is contained in:
Igor Scheller 2024-02-17 17:20:43 +01:00
parent 4fa5db8a42
commit aef53a306b
3 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ function form_submit(
) {
$add = '';
foreach ($dataAttributes as $dataType => $dataValue) {
$add .= ' data-' . $dataType . '="'. htmlspecialchars($dataValue) .'"';
$add .= ' data-' . $dataType . '="' . htmlspecialchars($dataValue) . '"';
}
$button = '<button class="btn btn-' . $buttonType . ($class ? ' ' . $class : '') . '" type="submit" name="' . $name . '" title="' . $title . '"' . $add . '>'
. $label

View File

@ -266,7 +266,7 @@ class ShiftCalendarShiftRenderer
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
$shift->shiftType->name,
$shift->start->format(__('general.datetime')),
$shift->end->format(__('H:i'))
$shift->end->format(__('H:i')),
]),
'confirm_button_text' => icon('trash') . __('form.delete'),
]

View File

@ -220,12 +220,12 @@ function Shift_view(
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
$shift->shiftType->name,
$shift->start->format(__('general.datetime')),
$shift->end->format(__('H:i'))
$shift->end->format(__('H:i')),
]),
'confirm_button_text' => icon('trash') . __('form.delete'),
]
),
], url('/user-shifts', ['delete_shift' => $shift->id])): '',
], url('/user-shifts', ['delete_shift' => $shift->id])) : '',
$admin_shifttypes
? button(url('/admin/shifttypes/' . $shifttype->id), htmlspecialchars($shifttype->name))
: '',