Skip to content

Commit

Permalink
Update db schema and require surname
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyms committed Aug 19, 2024
1 parent 8543ffa commit 35a0eba
Show file tree
Hide file tree
Showing 9 changed files with 467 additions and 402 deletions.
231 changes: 120 additions & 111 deletions app/forms/2.json
Original file line number Diff line number Diff line change
@@ -1,113 +1,122 @@
[
{
"label": "About You",
"input": "h1",
"elements": [
{
"label": "We need to know who you are and to see if you are a Knight.",
"input": "p"
},
{
"label": "First Name",
"caption": "Your (preferred) first name.",
"input": "text",
"key": "first_name",
"required": true
},
{
"label": "Surname",
"caption": "The rest of your name, including middle name if you have one, and your last name.",
"input": "text",
"key": "surname"
},
{
"label": "Preferred Email",
"caption": "We’ll use this to reach out to you if we need to.",
"input": "email",
"key": "email",
"required": true
},
{
"label": "NID",
"caption": "This is the UCF identifier with two letters and six numbers. It's in your school email!",
"input": "nid",
"key": "nid",
"required": true
},
{
"label": "Are You Returning?",
"caption": "If so, welcome back! If not, welcome to Hack@UCF!",
"input": "radio",
"options": ["Yes", "No"],
"key": "is_returning",
"required": true
},
{
"label": "Minecraft username",
"caption": "If you have a Minecraft account, put your username here to join our members-only Minecraft server.",
"input": "text",
"key": "minecraft",
"required": false
}
]
},
{
"label": "The following are used to get an idea of our demographics:",
"input": "h2",
"elements": [
{
"label": "Gender",
"input": "radio",
"options": ["Male", "Female", "Other / Prefer Not To Answer"],
"key": "gender",
"required": true
},
{
"label": "Major",
"input": "dropdown",
"other": true,
"options": [
"Computer Science",
"Information Technology",
"Computer Engineering",
"Electrical Engineering",
"Digital Forensics",
"Cybersecurity and Privacy"
],
"key": "major",
"required": true
},
{
"label": "Class Standing",
"caption": "(by credit hours)",
"input": "dropdown",
"other": true,
"options": [
"Freshman (0-29 credits)",
"Sophomore (30-59 credits)",
"Junior (60-89 credits)",
"Senior (> 90 credits)",
"Post-Bacc (secondary Bachelors)",
"Master’s",
"PhD"
],
"key": "class_standing",
"required": true
},
{
"label": "Shirt Size",
"caption": "Members get a free Hack@UCF t-shirt thanks to our sponsors!",
"input": "radio",
"options": ["S", "M", "L", "XL", "2XL", "3XL"],
"key": "shirt_size",
"required": true
},
{
"input": "navigation",
"next": "/join/3",
"prev": "/",
"prev_label": "Cancel"
}
]
}
{
"label": "About You",
"input": "h1",
"elements": [
{
"label": "We need to know who you are and to see if you are a Knight.",
"input": "p"
},
{
"label": "First Name",
"caption": "Your (preferred) first name.",
"input": "text",
"key": "first_name",
"required": true
},
{
"label": "Surname",
"caption": "The rest of your name, including middle name if you have one, and your last name.",
"input": "text",
"key": "surname",
"required": true
},
{
"label": "Preferred Email",
"caption": "We’ll use this to reach out to you if we need to.",
"input": "email",
"key": "email",
"required": true
},
{
"label": "Are you a UCF student?",
"caption": "If you are not a student fill out this form instead <a href='https://hackucf.org/join/non_ucf'>here</a>.",
"input": "radio",
"options": ["Yes", "No"],
"key": "ucf_student",
"required": true
},
{
"label": "NID",
"caption": "This is the UCF identifier with two letters and six numbers. It's in your school email!",
"input": "nid",
"key": "nid",
"required": true
},
{
"label": "Are You Returning?",
"caption": "If so, welcome back! If not, welcome to Hack@UCF!",
"input": "radio",
"options": ["Yes", "No"],
"key": "is_returning",
"required": true
},
{
"label": "Minecraft username",
"caption": "If you have a Minecraft account, put your username here to join our members-only Minecraft server.",
"input": "text",
"key": "minecraft",
"required": false
}
]
},
{
"label": "The following are used to get an idea of our demographics:",
"input": "h2",
"elements": [
{
"label": "Gender",
"input": "radio",
"options": ["Male", "Female", "Other / Prefer Not To Answer"],
"key": "gender",
"required": true
},
{
"label": "Major",
"input": "dropdown",
"other": true,
"options": [
"Computer Science",
"Information Technology",
"Computer Engineering",
"Electrical Engineering",
"Digital Forensics",
"Cybersecurity and Privacy"
],
"key": "major",
"required": true
},
{
"label": "Class Standing",
"caption": "(by credit hours)",
"input": "dropdown",
"other": true,
"options": [
"Freshman (0-29 credits)",
"Sophomore (30-59 credits)",
"Junior (60-89 credits)",
"Senior (> 90 credits)",
"Post-Bacc (secondary Bachelors)",
"Master’s",
"PhD"
],
"key": "class_standing",
"required": true
},
{
"label": "Shirt Size",
"caption": "Members get a free Hack@UCF t-shirt thanks to our sponsors!",
"input": "radio",
"options": ["S", "M", "L", "XL", "2XL", "3XL"],
"key": "shirt_size",
"required": true
},
{
"input": "navigation",
"next": "/join/3",
"prev": "/",
"prev_label": "Cancel"
}
]
}
]
Loading

0 comments on commit 35a0eba

Please sign in to comment.