jump to presence; bigger checkbox; actual balance
This commit is contained in:
@@ -164,9 +164,17 @@ if (isset($_POST['action'])) {
|
||||
unset($_POST['action']);
|
||||
|
||||
$every_week = isset($_POST['every_week']);
|
||||
$jumpTo = $_POST['jumpTo'];
|
||||
unset($_POST['jumpTo']);
|
||||
if ($every_week) unset($_POST['every_week']);
|
||||
training::create_training($_POST, $every_week);
|
||||
header("Location: /admin/trainings/");
|
||||
$tr_id = training::create_training($_POST, $every_week);
|
||||
|
||||
if (!$jumpTo) {
|
||||
header("Location: /admin/trainings/");
|
||||
}
|
||||
else {
|
||||
header("Location: /admin/presence/".$tr_id);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user