wip special days alerts

This commit is contained in:
Daniel Barbero Martin 2021-11-04 10:10:11 +01:00
parent bd75912a0d
commit f521dec4e2
2 changed files with 18 additions and 16 deletions

View File

@ -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;

View File

@ -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(),
], ],
]; ];