Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.118.252.215
{"version":3,"sources":["pages/change_college/index.js"],"names":["ChangeCollege","state","changecoll","frmsubmit","newcollcode","handleChangecc","_callee","e","data","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","wrap","_context","prev","next","_this","setState","value","stop","handleNewColl","_callee2","_context2","handleCancel","_callee3","_context3","props","clearteachid","handleSubmit","_callee4","error","_context4","header","content","showError","abrupt","teacherId","handleSaveNewColl","_callee5","_context5","newCollCode","this","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","fluid","Content","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","basic","color","icon","onClick","react_router_dom__WEBPACK_IMPORTED_MODULE_8__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Description","overflowY","height","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","Group","Field","width","Input","placeholder","name","onChange","maxLength","primary","Object","keys","teachdet","length","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","celled","padded","Row","HeaderCell","singleLine","Body","Cell","fteachname","fcollcode","fdob","console","log","Component","connect","univcode","univ","funivcode"],"mappings":"2RA4BMA,0OACJC,MAAQ,CACNC,WAAY,GACZC,WAAW,EACXC,YAAa,MAGfC,qDAAiB,SAAAC,EAAOC,EAAGC,GAAV,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OACfC,EAAKC,SAAS,CACZd,WAAYM,EAAKS,QAFJ,wBAAAL,EAAAM,SAAAZ,gEAKjBa,oDAAgB,SAAAC,EAAOb,EAAGC,GAAV,OAAAC,EAAAC,EAAAC,KAAA,SAAAU,GAAA,cAAAA,EAAAR,KAAAQ,EAAAP,MA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cA2JbC,sBARS,SAACxF,GAEvB,OADAqF,QAAQC,IAAItF,GACL,CACLyF,SAAUzF,EAAM0F,KAAKC,UACrBnB,SAAUxE,EAAMwE,WAIoB,CACtCxC,cACAE,cACAI,gBACAb,kBAJa+D,CAKZzF","file":"static/js/177.f81b332d.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Card,\n Button,\n Form,\n Table,\n Dropdown,\n Divider,\n} from \"semantic-ui-react\";\nimport { teacherId } from \"./../../actions/changecollege/teacherid\";\nimport {\n newCollCode,\n clearteachid,\n} from \"./../../actions/changecollege/teacherid\";\nimport { connect } from \"react-redux\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\nimport {\n getDegreeList,\n getpracticalcenters,\n changecenterpractical,\n updatepracticalcenter,\n} from \"../../actions/setpracticalcenter/setpracticalcenterform\";\nimport InputMask from \"react-input-mask\";\nimport moment from \"moment\";\n\nclass ChangeCollege extends Component {\n state = {\n changecoll: \"\",\n frmsubmit: false,\n newcollcode: \"\",\n };\n\n handleChangecc = async (e, data) => {\n this.setState({\n changecoll: data.value,\n });\n };\n handleNewColl = async (e, data) => {\n this.setState({\n newcollcode: data.value,\n });\n };\n\n handleCancel = async () => {\n await this.props.clearteachid();\n this.setState({\n changecoll: \"\",\n });\n this.setState({ frmsubmit: false });\n };\n\n handleSubmit = async () => {\n if (this.state.changecoll === \"\") {\n const error = { header: \"Error\", content: \"Select Teacher ID\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.teacherId(this.state);\n this.setState({ frmsubmit: true });\n\n this.setState({ newcollcode: \"\" });\n };\n\n handleSaveNewColl = async () => {\n if (this.state.newcollcode === \"\") {\n const error = { header: \"Error\", content: \"Enter New College Code\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.newCollCode(this.state);\n this.handleCancel();\n };\n\n render() {\n const { changecoll } = this.state;\n const { newcollcode } = this.state;\n\n return (\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Change College</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n onClick={this.handleCancel}\n content=\"Cancel\"\n />\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n <Divider />\n <Card.Description style={{ overflowY: \"auto\", height: \"70vh\" }}>\n <div className=\"col-md-7\">\n <Form>\n <div>\n <Form.Group>\n <Form.Field width={8}>\n <label>Teacher ID</label>\n <Form.Input\n placeholder=\"Teacher ID\"\n name=\"changecoll\"\n onChange={this.handleChangecc}\n value={changecoll}\n maxLength=\"5\"\n />\n </Form.Field>\n </Form.Group>\n <Button primary onClick={this.handleSubmit}>\n Submit\n </Button>\n </div>\n </Form>\n </div>\n\n {Object.keys(this.props.teachdet).length > 0 ? (\n <Table celled padded>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell singleLine>Teacher Name</Table.HeaderCell>\n <Table.HeaderCell>College Code</Table.HeaderCell>\n <Table.HeaderCell>Date Of Birth</Table.HeaderCell>\n <Table.HeaderCell>New College Code</Table.HeaderCell>\n <Table.HeaderCell>Action</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n\n <Table.Body>\n <Table.Row>\n <Table.Cell>\n <b>{this.props.teachdet.fteachname}</b>\n </Table.Cell>\n <Table.Cell singleLine>\n <b>{this.props.teachdet.fcollcode}</b>\n </Table.Cell>\n <Table.Cell>\n <b>{this.props.teachdet.fdob}</b>\n </Table.Cell>\n <Table.Cell>\n <b>\n {console.log(newcollcode, \"####\")}\n <Form.Input\n placeholder=\"New College Code\"\n name=\"newcollcode\"\n onChange={this.handleNewColl}\n value={newcollcode}\n maxLength=\"4\"\n />\n </b>\n </Table.Cell>\n <Table.Cell>\n <Button primary onClick={this.handleSaveNewColl}>\n Save\n </Button>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n </Table>\n ) : null}\n </Card.Description>\n </Card.Content>\n </Card>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n console.log(state);\n return {\n univcode: state.univ.funivcode,\n teachdet: state.teachdet,\n };\n};\n\nexport default connect(mapStateToProps, {\n showError,\n teacherId,\n newCollCode,\n clearteachid,\n})(ChangeCollege);\n"],"sourceRoot":""}
|