|
|
@ -228,8 +228,8 @@ function admin_active()
|
|
|
|
$parameters['show_all_shifts'] = 1;
|
|
|
|
$parameters['show_all_shifts'] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$actions[] = form(
|
|
|
|
$actions[] = form(
|
|
|
|
[form_submit('submit', __('set active'), 'btn-sm', false)],
|
|
|
|
[form_submit('submit', __('set active'), 'btn-sm', false, 'secondary')],
|
|
|
|
page_link_to('admin_active', $parameters)
|
|
|
|
page_link_to('admin_active', $parameters), false, true
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($usr->state->active) {
|
|
|
|
if ($usr->state->active) {
|
|
|
@ -241,8 +241,8 @@ function admin_active()
|
|
|
|
$parametersRemove['show_all_shifts'] = 1;
|
|
|
|
$parametersRemove['show_all_shifts'] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$actions[] = form(
|
|
|
|
$actions[] = form(
|
|
|
|
[form_submit('submit', __('remove active'), 'btn-sm', false)],
|
|
|
|
[form_submit('submit', __('remove active'), 'btn-sm', false, 'secondary')],
|
|
|
|
page_link_to('admin_active', $parametersRemove)
|
|
|
|
page_link_to('admin_active', $parametersRemove), false, true
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!$usr->state->got_shirt) {
|
|
|
|
if (!$usr->state->got_shirt) {
|
|
|
@ -254,8 +254,8 @@ function admin_active()
|
|
|
|
$parametersShirt['show_all_shifts'] = 1;
|
|
|
|
$parametersShirt['show_all_shifts'] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$actions[] = form(
|
|
|
|
$actions[] = form(
|
|
|
|
[form_submit('submit', __('got t-shirt'), 'btn-sm', false)],
|
|
|
|
[form_submit('submit', __('got t-shirt'), 'btn-sm', false, 'secondary')],
|
|
|
|
page_link_to('admin_active', $parametersShirt)
|
|
|
|
page_link_to('admin_active', $parametersShirt), false, true
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($usr->state->got_shirt) {
|
|
|
|
if ($usr->state->got_shirt) {
|
|
|
@ -267,12 +267,12 @@ function admin_active()
|
|
|
|
$parameters['show_all_shifts'] = 1;
|
|
|
|
$parameters['show_all_shifts'] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$actions[] = form(
|
|
|
|
$actions[] = form(
|
|
|
|
[form_submit('submit', __('remove t-shirt'), 'btn-sm', false)],
|
|
|
|
[form_submit('submit', __('remove t-shirt'), 'btn-sm', false, 'secondary')],
|
|
|
|
page_link_to('admin_active', $parameters)
|
|
|
|
page_link_to('admin_active', $parameters), false, true
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$actions[] = button(url('/admin/user/' . $usr->id . '/shirt'), __('form.edit'), 'btn-primary btn-sm');
|
|
|
|
$actions[] = button(url('/admin/user/' . $usr->id . '/shirt'), __('form.edit'), 'btn-secondary btn-sm');
|
|
|
|
|
|
|
|
|
|
|
|
$userData['actions'] = buttons($actions);
|
|
|
|
$userData['actions'] = buttons($actions);
|
|
|
|
|
|
|
|
|
|
|
|