Advertisement
danine1

additional index

Mar 7th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import classnames from "classnames";
  4. import { translate } from "react-i18next";
  5.  
  6. import { Form, Input } from "@ematix/tesseract-component-library";
  7.  
  8. import cls from "./styles.scss";
  9.  
  10. const AdditionalInformation = ({ className, t, ...rest }) => (
  11.   <Form
  12.     className={classnames(className, cls.form)}
  13.     {...rest}
  14.     onSubmit={() => {}}
  15.   >
  16.     <div className={cls.twoColumnsWrapper}>
  17.       <div className={cls.leftCol}>
  18.         <div className={cls.licenses}>
  19.           <Input label={t("Driving license number")} name="license_number" />
  20.           <Input label={t("Driving license type")} name="license_type" />
  21.         </div>
  22.         <Input label={t("Other Employment")} name="other" />
  23.         <Input label={t("Previous Employment")} name="previousEmployer" />
  24.         <Input
  25.           className={cls.safetyTraining}
  26.           label={t("Safety training")}
  27.           name="safety_training"
  28.           iconDate
  29.         />
  30.       </div>
  31.       <div className={cls.rightCol}>
  32.         <Input label={t("Health insurance company")} name="insurance_company" />
  33.         <Input
  34.           label={t("Insurance registration number")}
  35.           name="insurance_company"
  36.         />
  37.         <div className={cls.checkups}>
  38.           <Input label={t("Medical checkup")} name="medical_checkup" iconDate />
  39.           <Input label={t("Next checkup")} name="next_checkup" iconDate />
  40.         </div>
  41.         <Input label={t("Blood type")} name="blood_type" />
  42.         <div className={cls.addInfoField}>
  43.           <Input label={t("Additional information")} name="additional_info" />
  44.         </div>
  45.       </div>
  46.     </div>
  47.   </Form>
  48. );
  49.  
  50. AdditionalInformation.propTypes = {
  51.   className: PropTypes.string,
  52.   t: PropTypes.func.isRequired,
  53. };
  54.  
  55. AdditionalInformation.defaultProps = {
  56.   className: null,
  57. };
  58.  
  59. export default translate("AdditionalInformation")(AdditionalInformation);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement