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['no_self_signup'] = $angeltype['no_self_signup'] ? '' : icon('share');
$angeltype['no_self_signup'] = $angeltype['no_self_signup'] ? '' : icon('pencil-square');
$angeltype['name'] = '<a href="'
. page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']])

@ -503,7 +503,7 @@ function AngelTypes_list_view($angeltypes, $admin_angeltypes)
table([
'name' => __('Name'),
'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'),
'actions' => ''
], $angeltypes)
@ -581,9 +581,9 @@ function AngelTypes_about_view($angeltypes, $user_logged_in)
$buttons[] = button(page_link_to('login'), __('Login'));
}
$faqUrl = config('faq_url');
if (!empty($faqUrl)) {
$buttons[] = button($faqUrl, __('FAQ'), 'btn-primary');
$footerConfig = config('footer_items');
if (!empty($footerConfig['FAQ'])) {
$buttons[] = button($footerConfig['FAQ'], __('FAQ'), 'btn-primary');
}
$content = [

@ -326,7 +326,7 @@ class ShiftCalendarRenderer
badge(__('Help needed'), 'danger'),
badge(__('Other angeltype needed / collides with my shifts'), 'warning'),
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:
return 'danger';
default:
return '';
return 'secondary';
}
}

Loading…
Cancel
Save