use glyph bool icons on room list

This commit is contained in:
msquare 2017-07-28 19:49:32 +02:00
parent 5cffcd7fdf
commit 69a1ee2bfe
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ function admin_rooms()
foreach ($rooms_source as $room) { foreach ($rooms_source as $room) {
$rooms[] = [ $rooms[] = [
'name' => Room_name_render($room), 'name' => Room_name_render($room),
'from_pentabarf' => $room['FromPentabarf'] == 'Y' ? '✓' : '', 'from_pentabarf' => glyph_bool($room['FromPentabarf'] == 'Y'),
'public' => $room['show'] == 'Y' ? '✓' : '', 'public' => glyph_bool($room['show'] == 'Y'),
'actions' => table_buttons([ 'actions' => table_buttons([
button(page_link_to('admin_rooms') . '&show=edit&id=' . $room['RID'], _('edit'), 'btn-xs'), button(page_link_to('admin_rooms') . '&show=edit&id=' . $room['RID'], _('edit'), 'btn-xs'),
button(page_link_to('admin_rooms') . '&show=delete&id=' . $room['RID'], _('delete'), 'btn-xs') button(page_link_to('admin_rooms') . '&show=delete&id=' . $room['RID'], _('delete'), 'btn-xs')