Skip to content

Commit

Permalink
Update age ranges for ÖTSV e-Kids
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-gruenbacher committed Feb 3, 2018
1 parent b244ea7 commit e95fe44
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -7,7 +7,7 @@ SED = sed
MARKOC = backend/node_modules/marko/bin/markoc

# AngularJS
ANGULAR_BASE=https://code.angularjs.org/
ANGULAR_BASE=https://code.angularjs.org
ANGULAR_VERSION=1.6.8

DOWNLOAD_FILES = \
Expand Down
16 changes: 8 additions & 8 deletions htdocs/admin/riders/controller.js
Expand Up @@ -822,16 +822,16 @@ var ridersController = [
} else if (event.type.match(/^otsv-ecup/)) {
if (class_ == 1) {
$scope.max_age_year = 6;
} else if (class_ == 2 || class_ == 3) {
// $scope.min_age_year = 7;
} else if (class_ == 2) {
$scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 9;
} else if (class_ == 4) {
// $scope.min_age_year = 9;
} else if (class_ == 5) {
// $scope.min_age_year = 10;
$scope.max_age_year = 13;
} else if (class_ == 6) {
// $scope.min_age_year = 13;
$scope.min_age_year = 10;
$scope.max_age_year = 15;
} else if (class_ == 5 || class_ == 6) {
$scope.max_age_year = 15;
}
}
Expand Down
26 changes: 13 additions & 13 deletions htdocs/register/event/controller.js
Expand Up @@ -184,19 +184,19 @@ var eventController = [
}
} else if (event.type.match(/^otsv-ecup/)) {
if (class_ == 1) {
$scope.max_age_year = 6;
} else if (class_ == 2 || class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 4) {
// $scope.min_age_year = 9;
} else if (class_ == 5) {
// $scope.min_age_year = 10;
$scope.max_age_year = 13;
} else if (class_ == 6) {
// $scope.min_age_year = 13;
$scope.max_age_year = 15;
}
$scope.max_age_year = 6;
} else if (class_ == 2) {
$scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 9;
} else if (class_ == 4) {
$scope.min_age_year = 10;
$scope.max_age_year = 15;
} else if (class_ == 5 || class_ == 6) {
$scope.max_age_year = 15;
}
}
}

Expand Down

0 comments on commit e95fe44

Please sign in to comment.