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 : 3.128.168.176
(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{1083:function(e,a,t){"use strict";t.r(a);var n=t(41),l=t.n(n),r=t(68),c=t(99),o=t(100),s=t(102),u=t(101),i=t(103),h=t(1),d=t.n(h),m=t(858),p=t(1139),E=t(1106),C=t(272),w=t(1098),f=t(1101),b=t(491),v=t(104),g=(t(271),t(266)),k=(t(270),t(323),t(273),t(284),function(e){function a(){var e,t;Object(c.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=Object(s.a)(this,(e=Object(u.a)(a)).call.apply(e,[this].concat(o)))).state={changecoll:"",frmsubmit:!1,newcollcode:""},t.handleChangecc=function(){var e=Object(r.a)(l.a.mark(function e(a,n){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({changecoll:n.value});case 1:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.handleNewColl=function(){var e=Object(r.a)(l.a.mark(function e(a,n){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({newcollcode:n.value});case 1:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.handleCancel=Object(r.a)(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.props.clearteachid();case 2:t.setState({changecoll:""}),t.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)})),t.handleSubmit=Object(r.a)(l.a.mark(function e(){var a;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==t.state.changecoll){e.next=4;break}return a={header:"Error",content:"Select Teacher ID"},t.props.showError(a),e.abrupt("return");case 4:return e.next=6,t.props.teacherId(t.state);case 6:t.setState({frmsubmit:!0}),t.setState({newcollcode:""});case 8:case"end":return e.stop()}},e)})),t.handleSaveNewColl=Object(r.a)(l.a.mark(function e(){var a;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==t.state.newcollcode){e.next=4;break}return a={header:"Error",content:"Enter New College Code"},t.props.showError(a),e.abrupt("return");case 4:return e.next=6,t.props.newCollCode(t.state);case 6:t.handleCancel();case 7:case"end":return e.stop()}},e)})),t}return Object(i.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){var e=this.state.changecoll,a=this.state.newcollcode;return d.a.createElement(p.a,{fluid:!0},d.a.createElement(p.a.Content,null,d.a.createElement(p.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Change College"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(E.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),d.a.createElement(m.a,{to:"/dashboard"},d.a.createElement(E.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(C.a,null),d.a.createElement(p.a.Description,{style:{overflowY:"auto",height:"70vh"}},d.a.createElement("div",{className:"col-md-7"},d.a.createElement(w.a,null,d.a.createElement("div",null,d.a.createElement(w.a.Group,null,d.a.createElement(w.a.Field,{width:8},d.a.createElement("label",null,"Teacher ID"),d.a.createElement(w.a.Input,{placeholder:"Teacher ID",name:"changecoll",onChange:this.handleChangecc,value:e,maxLength:"5"}))),d.a.createElement(E.a,{primary:!0,onClick:this.handleSubmit},"Submit")))),Object.keys(this.props.teachdet).length>0?d.a.createElement(f.a,{celled:!0,padded:!0},d.a.createElement(f.a.Header,null,d.a.createElement(f.a.Row,null,d.a.createElement(f.a.HeaderCell,{singleLine:!0},"Teacher Name"),d.a.createElement(f.a.HeaderCell,null,"College Code"),d.a.createElement(f.a.HeaderCell,null,"Date Of Birth"),d.a.createElement(f.a.HeaderCell,null,"New College Code"),d.a.createElement(f.a.HeaderCell,null,"Action"))),d.a.createElement(f.a.Body,null,d.a.createElement(f.a.Row,null,d.a.createElement(f.a.Cell,null,d.a.createElement("b",null,this.props.teachdet.fteachname)),d.a.createElement(f.a.Cell,{singleLine:!0},d.a.createElement("b",null,this.props.teachdet.fcollcode)),d.a.createElement(f.a.Cell,null,d.a.createElement("b",null,this.props.teachdet.fdob)),d.a.createElement(f.a.Cell,null,d.a.createElement("b",null,console.log(a,"####"),d.a.createElement(w.a.Input,{placeholder:"New College Code",name:"newcollcode",onChange:this.handleNewColl,value:a,maxLength:"4"}))),d.a.createElement(f.a.Cell,null,d.a.createElement(E.a,{primary:!0,onClick:this.handleSaveNewColl},"Save"))))):null)))}}]),a}(h.Component));a.default=Object(v.b)(function(e){return console.log(e),{univcode:e.univ.funivcode,teachdet:e.teachdet}},{showError:g.w,teacherId:b.c,newCollCode:b.b,clearteachid:b.a})(k)}}]);
//# sourceMappingURL=177.f81b332d.chunk.js.map
|