State is now a <select>, show only one child row at first
This commit is contained in:
parent
c415e2f6ad
commit
cb804eaf85
@ -57,7 +57,7 @@ $database->action(function($database) {
|
||||
errorBack("Enter a city.");
|
||||
}
|
||||
if (!preg_match("/^[A-Z]{2}$/", $state)) {
|
||||
errorBack("Enter a valid two-character state (MT, WY, ID, etc).");
|
||||
errorBack("Select a state.");
|
||||
}
|
||||
if (!preg_match("/^[0-9]{5}(-?[0-9]{4})?$/", $zip)) {
|
||||
errorBack("Enter a valid five or nine digit US ZIP code.");
|
||||
|
@ -76,8 +76,61 @@
|
||||
"label" => "State",
|
||||
"icon" => "fas fa-flag",
|
||||
"name" => "state",
|
||||
"maxlength" => 2,
|
||||
"value" => "MT",
|
||||
"type" => "select",
|
||||
"options" => [
|
||||
'MT' => 'Montana',
|
||||
'AL' => 'Alabama',
|
||||
'AK' => 'Alaska',
|
||||
'AZ' => 'Arizona',
|
||||
'AR' => 'Arkansas',
|
||||
'CA' => 'California',
|
||||
'CO' => 'Colorado',
|
||||
'CT' => 'Connecticut',
|
||||
'DE' => 'Delaware',
|
||||
'DC' => 'District of Columbia',
|
||||
'FL' => 'Florida',
|
||||
'GA' => 'Georgia',
|
||||
'HI' => 'Hawaii',
|
||||
'ID' => 'Idaho',
|
||||
'IL' => 'Illinois',
|
||||
'IN' => 'Indiana',
|
||||
'IA' => 'Iowa',
|
||||
'KS' => 'Kansas',
|
||||
'KY' => 'Kentucky',
|
||||
'LA' => 'Louisiana',
|
||||
'ME' => 'Maine',
|
||||
'MD' => 'Maryland',
|
||||
'MA' => 'Massachusetts',
|
||||
'MI' => 'Michigan',
|
||||
'MN' => 'Minnesota',
|
||||
'MS' => 'Mississippi',
|
||||
'MO' => 'Missouri',
|
||||
'MT' => 'Montana',
|
||||
'NE' => 'Nebraska',
|
||||
'NV' => 'Nevada',
|
||||
'NH' => 'New Hampshire',
|
||||
'NJ' => 'New Jersey',
|
||||
'NM' => 'New Mexico',
|
||||
'NY' => 'New York',
|
||||
'NC' => 'North Carolina',
|
||||
'ND' => 'North Dakota',
|
||||
'OH' => 'Ohio',
|
||||
'OK' => 'Oklahoma',
|
||||
'OR' => 'Oregon',
|
||||
'PA' => 'Pennsylvania',
|
||||
'RI' => 'Rhode Island',
|
||||
'SC' => 'South Carolina',
|
||||
'SD' => 'South Dakota',
|
||||
'TN' => 'Tennessee',
|
||||
'TX' => 'Texas',
|
||||
'UT' => 'Utah',
|
||||
'VT' => 'Vermont',
|
||||
'VA' => 'Virginia',
|
||||
'WA' => 'Washington',
|
||||
'WV' => 'West Virginia',
|
||||
'WI' => 'Wisconsin',
|
||||
'WY' => 'Wyoming'
|
||||
],
|
||||
"width" => 2
|
||||
],
|
||||
[
|
||||
@ -107,8 +160,8 @@
|
||||
"type" => "select",
|
||||
"options" => [
|
||||
"1" => "Email ($25)",
|
||||
"2" => "Snail Mail ($35)",
|
||||
"3" => "Email and Snail Mail ($35)"
|
||||
"2" => "Paper ($35)",
|
||||
"3" => "Email and Paper ($35)"
|
||||
]
|
||||
]
|
||||
];
|
||||
@ -161,7 +214,8 @@
|
||||
|
||||
<div class="card-text">
|
||||
<p>
|
||||
These membership fees cover costs of the following:
|
||||
The membership fees (determined by your newsletter
|
||||
preference) cover costs of the following:
|
||||
phone; website; postage; distribution of newsletters and
|
||||
directories; publication of materials; library; and other
|
||||
HACHE related activities. Dues are reduced as of March 1st.
|
||||
@ -187,9 +241,7 @@
|
||||
|
||||
<div class="list-group" id="child_list">
|
||||
<?php
|
||||
for ($i = 0; $i < 2; $i++) {
|
||||
include __DIR__ . "/template_child_entry.php";
|
||||
}
|
||||
include __DIR__ . "/template_child_entry.php";
|
||||
?>
|
||||
</div>
|
||||
|
||||
@ -321,6 +373,9 @@
|
||||
<h3><i class="fas fa-dollar-sign fa-fw"></i> Pay and Submit</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-text text-success mb-1">
|
||||
<i class="fas fa-lock"></i> We can't see your card info; it's sent directly and securely from your computer to our payment processor.
|
||||
</div>
|
||||
<label for="card-element">
|
||||
Credit or debit card
|
||||
</label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user