diff --git a/public/parts/template_person.php b/public/parts/template_person.php index 6dc9bcb..fb96502 100644 --- a/public/parts/template_person.php +++ b/public/parts/template_person.php @@ -63,7 +63,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "maxlength" => 255, "width" => 6, "value" => $personinfo["firstname"], - "error" => "Enter the person's first name." + "error" => "Enter the person's first name.", + "placeholder" => "John" ], [ "label" => "Last Name", @@ -71,7 +72,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 6, "maxlength" => 255, "value" => $personinfo["lastname"], - "error" => "Enter the person's last name." + "error" => "Enter the person's last name.", + "placeholder" => "Smith" ] ]; if ($type == "camper") { @@ -82,7 +84,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 12, "maxlength" => 255, "value" => $personinfo["parentname"], - "error" => "Enter the parent or guardian's full name." + "error" => "Enter the parent or guardian's full name.", + "placeholder" => "Parent McParentson" ] ]); } @@ -93,7 +96,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "maxlength" => 500, "width" => 8, "value" => $personinfo["address"], - "error" => "Enter the person's home address." + "error" => "Enter the person's home address.", + "placeholder" => "123 Example Rd" ], [ "label" => "ZIP Code", @@ -102,7 +106,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 4, "value" => $personinfo["zip"], "pattern" => "[0-9]{5}(-?[0-9]{4})?", - "error" => "Enter a valid 5 or 9 digit ZIP code." + "error" => "Enter a valid 5 or 9 digit ZIP code.", + "placeholder" => "59601" ], [ "label" => "Phone Number", @@ -112,7 +117,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 3, "value" => $personinfo["phone1"], "pattern" => "[0-9]{10}", - "error" => "Enter a 10-digit phone number (numbers only)." + "error" => "Enter a 10-digit phone number (numbers only).", + "placeholder" => "4061234567" ] ]); if ($type == "camper") { @@ -126,7 +132,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "optional" => true, "value" => $personinfo["phone2"], "pattern" => "[0-9]{10}", - "error" => "Enter a 10-digit phone number (numbers only)." + "error" => "Enter a 10-digit phone number (numbers only).", + "placeholder" => "4061234567" ] ]); } @@ -138,7 +145,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 5, "type" => "email", "value" => $personinfo["email"], - "error" => "Enter your email address." + "error" => "Enter your email address.", + "placeholder" => "example@ppdcamp.net" ] ]); if ($type == "camper") { @@ -150,7 +158,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "maxlength" => 4, "pattern" => "[0-9]{3,4}", "value" => $personinfo["unit"], - "error" => "Enter the pack number." + "error" => "Enter the pack number.", + "placeholder" => "230" ], [ "label" => "Rank (as of June " . date("Y") . ")", @@ -178,7 +187,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 4, "maxlength" => 255, "value" => $personinfo["parentname"], - "error" => "Enter the parent or guardian's full name." + "error" => "Enter the parent or guardian's full name.", + "placeholder" => "Guardian McParentson" ], [ "label" => "Parent Phone", @@ -188,7 +198,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "width" => 3, "value" => $personinfo["phone2"], "pattern" => "[0-9]{10}", - "error" => "Enter a 10-digit phone number (numbers only)." + "error" => "Enter a 10-digit phone number (numbers only).", + "placeholder" => "4069876543" ], [ "label" => "Unit #", @@ -198,7 +209,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "pattern" => "[0-9]{3,4}", "value" => $personinfo["unit"], "optional" => true, - "error" => "Enter the unit number." + "error" => "Enter the unit number.", + "placeholder" => "201" ], ]); } @@ -303,7 +315,8 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "name" => "child_care", "optional" => true, "width" => 12, - "value" => $personinfo["child_care"] + "value" => $personinfo["child_care"], + "placeholder" => "6,4,5,34" ], ]); } @@ -320,7 +333,7 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { name="people[][]" data-name="" class="form-control" - placeholder="" + placeholder="" aria-label="" maxlength=""