Skip to content

Instantly share code, notes, and snippets.

@RaulTsc
Created February 22, 2017 16:03
Show Gist options
  • Save RaulTsc/6e17e5f572ee75457bb34144d09131ac to your computer and use it in GitHub Desktop.
Save RaulTsc/6e17e5f572ee75457bb34144d09131ac to your computer and use it in GitHub Desktop.
const applicationFormTemplateBlueprint = {
  basicInformation: {
    firstName: {
      type: 'text',
    },
    lastName: {
      type: 'text',
    },
    birthdate: {
      type: 'date',
    },
    placeOfBirth: {
      type: 'text',
    },
    nationality: {
      type: 'select',
      possibleValues: ['German', 'Romanian'],
    },
    familyStatus: {
      type: 'select',
      possibleValues: ['Single', 'Married'],
    },
    cellPhoneNumber: {
      type: 'phone',
    },
    phoneNumber: {
      type: 'phone',
    },
    email: {
      type: 'email',
    },
  },
  address: {
    current: {
      street: {
    type: 'text',
      },
      number: {
    type: 'text',
      },
      city: {
    type: 'text',
      },
      zipCode: {
    type: 'text',
      },
      country: {
    type: 'text',
      },
      reasonForMoving: {
    type: 'text',
      },
      landlordName: {
    type: 'text',
      },
      landlordPhoneNumber: {
    type: 'phone',
      },
    },
    previous: {
      street: {
    type: 'text',
      },
      number: {
    type: 'text',
      },
      city: {
    type: 'text',
      },
      zipCode: {
    type: 'text',
      },
      country: {
    type: 'text',
      },
      reasonForMoving: {
    type: 'text',
      },
      landlordName: {
    type: 'text',
      },
      landlordPhoneNumber: {
    type: 'phone',
      },
    },
  },
  employmentInformation: {
    currentEmployer: {
      employerName: {
    type: 'text',
      },
      occupation: {
    type: 'text',
      },
      netMonthlyIncome: {
    type: 'text',
      },
      employmentPeriod: {
    type: 'text',
      },
      employerSuperviserName: {
    type: 'text',
      },
      employerSuperviserPhoneNumber: {
    type: 'phone',
      },
    },
    previousEmployer: {
      employerName: {
    type: 'text',
      },
      occupation: {
    type: 'text',
      },
      netMonthlyIncome: {
    type: 'text',
      },
      employmentPeriod: {
    type: 'text',
      },
      employerSuperviserName: {
    type: 'text',
      },
      employerSuperviserPhoneNumber: {
    type: 'phone',
      },
    },
  },
  householdInformation: {
    peopleThatWillMoveIn: [
      {
    name: {
      type: 'text',
    },
    birthdate: {
      type: 'date',
    },
    relationship: {
      type: 'text',
    },
      },
      {
    name: {
      type: 'text',
    },
    birthdate: {
      type: 'date',
    },
    relationship: {
      type: 'text',
    },
      },
    ],
    isAnyoneSmoking: {
      type: 'radio',
    },
    hasPets: {
      type: 'radio',
    },
    petDetails: {
      type: 'text',
    },
  },
  references: [
    {
      name: {
    type: 'text',
      },
      relationship: {
    type: 'text',
      },
      email: {
    type: 'email',
      },
      phoneNumber: {
    type: 'phone',
      },
    },
  ],
  generalInformation: {
    hadRentIssues: {
      type: 'radio_extended',
    },
    wasEvicted: {
      type: 'radio_extended',
    },
    hadForeclosure: {
      type: 'radio_extended',
    },
    hasFiledBankruptcy: {
      type: 'radio_extended',
    },
    wasConvictedOfFelony: {
      type: 'radio_extended',
    },
    isUsingSocialBenefits: {
      type: 'radio_extended',
    },
    isUsingApartmentForBusiness: {
      type: 'radio_extended',
    },
  },
  documentsInformation: {
    copyOfId: {
      type: 'upload',
    },
    copyOfEmploymentContract: {
      type: 'upload',
    },
  },
  additionalQuestions: [],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment