wip special days alerts
This commit is contained in:
parent
bd75912a0d
commit
f521dec4e2
|
@ -644,21 +644,23 @@ class CalendarManager
|
|||
);
|
||||
$tmp->options .= '</a>';
|
||||
|
||||
// Options. Delete.
|
||||
$tmp->options .= '<a href="';
|
||||
$tmp->options .= ui_get_full_url(
|
||||
$this->url.'&op=delete&id='.$tmp->id
|
||||
);
|
||||
$tmp->options .= '">';
|
||||
$tmp->options .= html_print_image(
|
||||
'images/cross.png',
|
||||
true,
|
||||
[
|
||||
'title' => __('Delete'),
|
||||
'class' => 'invert_filter',
|
||||
]
|
||||
);
|
||||
$tmp->options .= '</a>';
|
||||
if ($tmp->id != 1) {
|
||||
// Options. Delete.
|
||||
$tmp->options .= '<a href="';
|
||||
$tmp->options .= ui_get_full_url(
|
||||
$this->url.'&op=delete&id='.$tmp->id
|
||||
);
|
||||
$tmp->options .= '">';
|
||||
$tmp->options .= html_print_image(
|
||||
'images/cross.png',
|
||||
true,
|
||||
[
|
||||
'title' => __('Delete'),
|
||||
'class' => 'invert_filter',
|
||||
]
|
||||
);
|
||||
$tmp->options .= '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
$carry[] = $tmp;
|
||||
|
|
|
@ -105,7 +105,7 @@ $inputs[] = [
|
|||
'name' => 'day_code',
|
||||
'type' => 'select',
|
||||
'fields' => $days,
|
||||
'selected' => $specialDay->day_code(),
|
||||
'selected' => ($specialDay->day_code() === null) ? 1 : $specialDay->day_code(),
|
||||
],
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue