Fix formatting
This commit is contained in:
parent
4fa5db8a42
commit
aef53a306b
|
@ -155,7 +155,7 @@ function form_submit(
|
||||||
) {
|
) {
|
||||||
$add = '';
|
$add = '';
|
||||||
foreach ($dataAttributes as $dataType => $dataValue) {
|
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 . '>'
|
$button = '<button class="btn btn-' . $buttonType . ($class ? ' ' . $class : '') . '" type="submit" name="' . $name . '" title="' . $title . '"' . $add . '>'
|
||||||
. $label
|
. $label
|
||||||
|
|
|
@ -266,7 +266,7 @@ class ShiftCalendarShiftRenderer
|
||||||
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
|
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
|
||||||
$shift->shiftType->name,
|
$shift->shiftType->name,
|
||||||
$shift->start->format(__('general.datetime')),
|
$shift->start->format(__('general.datetime')),
|
||||||
$shift->end->format(__('H:i'))
|
$shift->end->format(__('H:i')),
|
||||||
]),
|
]),
|
||||||
'confirm_button_text' => icon('trash') . __('form.delete'),
|
'confirm_button_text' => icon('trash') . __('form.delete'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -220,12 +220,12 @@ function Shift_view(
|
||||||
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
|
'confirm_submit_title' => __('Do you want to delete the shift "%s" from %s to %s?', [
|
||||||
$shift->shiftType->name,
|
$shift->shiftType->name,
|
||||||
$shift->start->format(__('general.datetime')),
|
$shift->start->format(__('general.datetime')),
|
||||||
$shift->end->format(__('H:i'))
|
$shift->end->format(__('H:i')),
|
||||||
]),
|
]),
|
||||||
'confirm_button_text' => icon('trash') . __('form.delete'),
|
'confirm_button_text' => icon('trash') . __('form.delete'),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
], url('/user-shifts', ['delete_shift' => $shift->id])): '',
|
], url('/user-shifts', ['delete_shift' => $shift->id])) : '',
|
||||||
$admin_shifttypes
|
$admin_shifttypes
|
||||||
? button(url('/admin/shifttypes/' . $shifttype->id), htmlspecialchars($shifttype->name))
|
? button(url('/admin/shifttypes/' . $shifttype->id), htmlspecialchars($shifttype->name))
|
||||||
: '',
|
: '',
|
||||||
|
|
Loading…
Reference in New Issue