Add optional unit number to youth
This commit is contained in:
parent
37b8b641d8
commit
d6a78aa59d
@ -267,6 +267,16 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
|
|||||||
"value" => $data["phone2"],
|
"value" => $data["phone2"],
|
||||||
"pattern" => "[0-9]{10}",
|
"pattern" => "[0-9]{10}",
|
||||||
"error" => "Enter a 10-digit phone number (numbers only)."
|
"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"],
|
"value" => $personinfo["phone2"],
|
||||||
"pattern" => "[0-9]{10}",
|
"pattern" => "[0-9]{10}",
|
||||||
"error" => "Enter a 10-digit phone number (numbers only)."
|
"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") {
|
if ($type == "adult" || $type == "youth") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user