jump to presence; bigger checkbox; actual balance

This commit is contained in:
Tóth Richárd
2018-09-16 13:06:12 +02:00
parent edd39eeae3
commit 1db830ca71
9 changed files with 300 additions and 242 deletions

View File

@@ -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;