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