Replaced self sign up icons, fixed FAQ link on angeltypes overview and shift overview colors

main
Igor Scheller 3 years ago
parent 2223781434
commit a36e142f28

@ -321,7 +321,7 @@ function angeltypes_list_controller()
} }
$angeltype['restricted'] = $angeltype['restricted'] ? icon('book') : ''; $angeltype['restricted'] = $angeltype['restricted'] ? icon('book') : '';
$angeltype['no_self_signup'] = $angeltype['no_self_signup'] ? '' : icon('share'); $angeltype['no_self_signup'] = $angeltype['no_self_signup'] ? '' : icon('pencil-square');
$angeltype['name'] = '<a href="' $angeltype['name'] = '<a href="'
. page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]) . page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']])

@ -503,7 +503,7 @@ function AngelTypes_list_view($angeltypes, $admin_angeltypes)
table([ table([
'name' => __('Name'), 'name' => __('Name'),
'restricted' => icon('book') . __('Requires introduction'), 'restricted' => icon('book') . __('Requires introduction'),
'no_self_signup' => icon('share') . __('Self Sign Up Allowed'), 'no_self_signup' => icon('pencil-square') . __('Self Sign Up Allowed'),
'membership' => __('Membership'), 'membership' => __('Membership'),
'actions' => '' 'actions' => ''
], $angeltypes) ], $angeltypes)
@ -581,9 +581,9 @@ function AngelTypes_about_view($angeltypes, $user_logged_in)
$buttons[] = button(page_link_to('login'), __('Login')); $buttons[] = button(page_link_to('login'), __('Login'));
} }
$faqUrl = config('faq_url'); $footerConfig = config('footer_items');
if (!empty($faqUrl)) { if (!empty($footerConfig['FAQ'])) {
$buttons[] = button($faqUrl, __('FAQ'), 'btn-primary'); $buttons[] = button($footerConfig['FAQ'], __('FAQ'), 'btn-primary');
} }
$content = [ $content = [

@ -326,7 +326,7 @@ class ShiftCalendarRenderer
badge(__('Help needed'), 'danger'), badge(__('Help needed'), 'danger'),
badge(__('Other angeltype needed / collides with my shifts'), 'warning'), badge(__('Other angeltype needed / collides with my shifts'), 'warning'),
badge(__('Shift is full'), 'success'), badge(__('Shift is full'), 'success'),
badge(__('Shift running/ended or user not arrived/allowed'), 'default') badge(__('Shift running/ended or user not arrived/allowed'), 'secondary')
]); ]);
} }
} }

@ -91,7 +91,7 @@ class ShiftCalendarShiftRenderer
case ShiftSignupState::FREE: case ShiftSignupState::FREE:
return 'danger'; return 'danger';
default: default:
return ''; return 'secondary';
} }
} }

Loading…
Cancel
Save