From a3961dc2c13844ad6ad0c0e187e27331e14b0e6c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 17 Nov 2018 23:49:11 -0700 Subject: [PATCH] Add child entry in membership form --- public/parts/signup.php | 24 ++++++++- public/parts/template_child_entry.php | 71 +++++++++++++++++++++++++++ public/static/signup.js | 12 +++++ 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 public/parts/template_child_entry.php create mode 100644 public/static/signup.js diff --git a/public/parts/signup.php b/public/parts/signup.php index 0744a4a..ae0fa64 100644 --- a/public/parts/signup.php +++ b/public/parts/signup.php @@ -162,6 +162,26 @@ +
+ +

+ Please list your children's first names and birth dates. This + information will appear in our members’ directory. Members + agree that they will NOT make this information public. + +

+ +
+ +
+ Add another row +
+ +
@@ -248,4 +268,6 @@
- \ No newline at end of file + + + \ No newline at end of file diff --git a/public/parts/template_child_entry.php b/public/parts/template_child_entry.php new file mode 100644 index 0000000..bd05d65 --- /dev/null +++ b/public/parts/template_child_entry.php @@ -0,0 +1,71 @@ + + +
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
\ No newline at end of file diff --git a/public/static/signup.js b/public/static/signup.js new file mode 100644 index 0000000..9cf94b5 --- /dev/null +++ b/public/static/signup.js @@ -0,0 +1,12 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +$("#add_child_row").click(function () { + $.get("parts/template_child_entry.php", {}, function (resp) { + $("#child_list").append(resp); + }); +}); \ No newline at end of file