Add optional unit number to youth

master
Skylar Ittner 5 years ago
parent 37b8b641d8
commit d6a78aa59d

@ -267,6 +267,16 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
"value" => $data["phone2"],
"pattern" => "[0-9]{10}",
"error" => "Enter a 10-digit phone number (numbers only)."
],
[
"label" => "Unit #",
"name" => "unit",
"width" => 2,
"maxlength" => 4,
"pattern" => "[0-9]{3,4}",
"value" => $data["unit"],
"optional" => true,
"error" => "Enter the unit number."
]
]);
}

@ -189,7 +189,17 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) {
"value" => $personinfo["phone2"],
"pattern" => "[0-9]{10}",
"error" => "Enter a 10-digit phone number (numbers only)."
]
],
[
"label" => "Unit #",
"name" => "unit",
"width" => 2,
"maxlength" => 4,
"pattern" => "[0-9]{3,4}",
"value" => $personinfo["unit"],
"optional" => true,
"error" => "Enter the unit number."
],
]);
}
if ($type == "adult" || $type == "youth") {

Loading…
Cancel
Save