- 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/ApplyToJobAdModal.js
rbefb988 r08f82ec 51 51 52 52 dispatch(ApplicationActions.submitApplication( 53 formData, (success, response) => {54 if (success) {53 formData, (success) => { 54 if (success) { 55 55 toggleModal() 56 56 notifyJobAdApply() … … 66 66 67 67 return (<div className="modal-wrap"> 68 {role ===Roles.JOBSEEKER &&68 {role === Roles.JOBSEEKER && 69 69 <> 70 {jobAd.active && <button onClick={toggleModal} className="apply-button apply">Apply now</button> 71 {!jobAd.active && <button className="card-button apply disabled">Apply now</button> 70 {jobAd.active && <button onClick={toggleModal} className="apply-button apply">Apply now</button>} 71 {!jobAd.active && <button className="card-button apply disabled">Apply now</button>} 72 72 </> 73 73 } 74 <Modal open={modal} onClose={toggleModal} center 74 <Modal open={modal} onClose={toggleModal} center> 75 75 <div className="head-modal"> 76 76 <h3>Applying to {jobAd.title} at {jobAd.recruiterName}</h3> … … 78 78 </div> 79 79 80 <div className="modal-content" 80 <div className="modal-content"> 81 81 <form onSubmit={handleSubmit(submitApplication)}> 82 82 <div className="row"> … … 92 92 <p style={{color: "red"}}>{errors.answerTwo?.message}</p> 93 93 94 <label className="label">What do you hope to achieve in your first 6 months in this role?</label> 95 <textarea type="text" placeholder="Write your answer here..." 96 {...register("answerThree")} className="application-textarea"/> 94 <label className="label">What do you hope to achieve in your first 6 months in this 95 role?</label> 96 <textarea type="text" placeholder="Write your answer here..." 97 {...register("answerThree")} className="application-textarea"/> 97 98 <p style={{color: "red"}}>{errors.answerThree?.message}</p> 98 99 … … 101 102 <label htmlFor="start">Curriculum vitae (CV)</label> 102 103 <br/> 103 <input {...register("file")} className="resume-link" onChange={(e) => setResumeFile(e.target.files[0])} required type="file" id="fileUpload" accept=".pdf"/> 104 <input {...register("file")} className="resume-link" 105 onChange={(e) => setResumeFile(e.target.files[0])} required type="file" 106 id="fileUpload" accept=".pdf"/> 104 107 105 108 <br/> … … 109 112 110 113 <br/><br/> 111 <p style={{color: "red"}}>Please note that your personal data from your account will be used to identify and process your application.</p> 114 <p style={{color: "red"}}>Please note that your personal data from your account will be used 115 to identify and process your application.</p> 112 116 </div> 113 117 </div>
Note:
See TracChangeset
for help on using the changeset viewer.