diff --git a/components/individualStudentTeacherEdit.js b/components/individualStudentTeacherEdit.js new file mode 100644 index 0000000..4f87796 --- /dev/null +++ b/components/individualStudentTeacherEdit.js @@ -0,0 +1,169 @@ +import React from 'react'; +import { Form, Input, Card, Button, Avatar, Space } from 'antd'; + +import stylesheet from 'antd/dist/antd.min.css'; +const { Meta } = Card; + + +export default class TeacherEditStudentComponent extends React.Component { + constructor(props) { + super(props); + } + + componentDidMount() { + console.log("in TeacherEditStudentComponent class...."); + console.log(this.props.individualEditStudentInformation); + console.log(this.props.individualEditStudentInformation.data.data.displayName); + + } + + backButtonComponent = () => { + return( + + ) + } + + updateButtonComponent = () => { + return( + + ) + } + + nameFormItemComponent = () => { + if(this.props.teacherStudentComponent.individualStudentTeacherEditNameError) { + return( +
+ Name + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + onBlur={(event) => this.props.onBlurhandleIndividualStudentTeacherEditNameChange(event)} + /> + +
+ ) + } else { + return( +
+ Name + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + onBlur={(event)=> this.props.onBlurhandleIndividualStudentTeacherEditNameChange(event)} + /> + +
+ ) + } + } + + emailFormItemComponent = () => { + if(this.props.teacherStudentComponent.individualStudentTeacherEditEmailError) { + return( +
+ Email + + this.props.handleIndividualStudentTeacherEditEmailChange(event)} + onBlur={(event)=>this.props.onBlurhandleIndividualStudentTeacherEditEmailChange(event)} + /> + +
+ ) + } else { + return( +
+ Email + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + onBlur={(event)=>this.props.onBlurhandleIndividualStudentTeacherEditEmailChange(event)} + /> + +
+ ) + } + } + + gradeFormItemComponent = () => { + if(this.props.teacherStudentComponent.individualStudentTeacherEditGradeError) { + return( +
+ Current Grade + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + onBlur={(event)=>this.props.onBlurhandleIndividualStudentTeacherEditGradeChange(event)} + /> + +
+ ) + } else { + return( +
+ Current Grade + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + onBlur={(event)=>this.props.onBlurhandleIndividualStudentTeacherEditGradeChange(event)} + /> + +
+ ) + } + } + + passwordFormItemComponent = () => { + return( +
+ New Password + + this.props.handleIndividualStudentTeacherEditNameChange(event)} + /> + +
+ ) + } + + render() { + return ( + +