Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Nominations form updates #226

Open
wants to merge 3 commits into
base: release_2018
Choose a base branch
from

Conversation

chimon2000
Copy link
Collaborator

@chimon2000 chimon2000 commented Oct 27, 2018

  • Display a message to nominators if they enter a child that is older than fourteen years old. It will still allow the user to submit the form.
  • Move "reason for nomination" away from child; put on head of household section instead. Make a required field.
  • Change child age calculation to be based on their age on Christmas instead of the current date.
  • Add text around the wishlist text area to only enter toys that are under $50
  • Change "# in household" to "Number of kids being nominated"
  • When submitting the form, check whether the number of children actually entered does not match the number entered in the Number of kids field, alert the user of the discrepancy. We don't want to automatically calculate the number of children nominated; the field serves as a double-checking tool for the nominator.

<div>
{nominations &&
nominations.map((row, idx) => {
const dob = pathOr(new Date(), "dob", fields.value[idx]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting a fields is not defined error

<Row>
{isTooOld && (
<Col xs={12}>
<Alert bsStyle="warning" key={name}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name apparently makes the no-restricted-globals linter go mad 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants