- Timestamp:
- 06/20/24 11:57:13 (3 months ago)
- Branches:
- main
- Children:
- 0f0add0
- Parents:
- befb988
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jobvista-frontend/src/views/applications/ApplicationDetailsModal.js
rbefb988 r08f82ec 32 32 33 33 useEffect(() => { 34 if (application) {35 dispatch(ApplicationActions.downloadResume(application.fileName, (success, response) => {36 if (success) {34 if (application) { 35 ApplicationActions.downloadResume(application.id, (success, response) => { 36 if (success) { 37 37 setResumeUrl(response); 38 38 } 39 }) )39 }) 40 40 } 41 }, [application]) 41 }, []) 42 43 function getFileName(path) { 44 let fileName = path.split('\\').pop().split('/').pop(); 45 46 fileName = fileName.trim(); 47 48 return fileName; 49 } 42 50 43 51 return (<div className="modal-wrap"> 44 52 <button onClick={toggleModal} className="application-button">View application</button> 45 <Modal open={modal} onClose={toggleModal} center 53 <Modal open={modal} onClose={toggleModal} center> 46 54 <div className="head-modal"> 47 55 <h3>{application.jobSeekerName}'s application for {application.jobAdTitle}</h3> … … 49 57 </div> 50 58 51 <div className="modal-content" 59 <div className="modal-content"> 52 60 <form> 53 61 <div className="row"> 54 62 <div className="col-md-6"> 55 63 <label className="label">Why are you interested in joining our company?</label> 56 <textarea disabled type="text" defaultValue={application.questionAnswers[0]} disabled placeholder="Write your answer here..." className="application-textarea"/>57 58 64 <textarea disabled type="text" defaultValue={application.questionAnswers[0]} disabled 65 placeholder="Write your answer here..." className="application-textarea"/> 66 <br/><br/> 59 67 <label className="label">What makes you a good fit for this position?</label> 60 <textarea disabled type="text" defaultValue={application.questionAnswers[1]} placeholder="Write your answer here..." className="application-textarea"/> 61 62 63 <label className="label">What do you hope to achieve in your first 6 months in this role?</label> 64 <textarea disabled type="text" defaultValue={application.questionAnswers[2]} placeholder="Write your answer here..." className="application-textarea"/> 68 <textarea disabled type="text" defaultValue={application.questionAnswers[1]} 69 placeholder="Write your answer here..." className="application-textarea"/> 70 <br/><br/> 71 <label className="label">What do you hope to achieve in your first 6 months in this 72 role?</label> 73 <textarea disabled type="text" defaultValue={application.questionAnswers[2]} 74 placeholder="Write your answer here..." className="application-textarea"/> 65 75 66 76 </div> … … 68 78 <label htmlFor="start">Curriculum vitae (CV)</label> 69 79 <br/> 70 <a className="resume-link" href={resumeUrl} target="_blank" rel="noopener noreferrer">{application.fileName}</a> 80 <a className="resume-link" href={resumeUrl} target="_blank" 81 rel="noopener noreferrer">{getFileName(application.fileName)}</a> 71 82 <br/> 72 83 73 84 <br/> 74 85 <label className="label">Message to the recruiter</label> 75 <textarea disabled type="text" defaultValue={application.message} placeholder="Optional..." className="application-textarea"/> 86 <textarea disabled type="text" defaultValue={application.message} placeholder="Optional..." 87 className="application-textarea"/> 76 88 77 89 </div>
Note:
See TracChangeset
for help on using the changeset viewer.