Commit b9452dfc authored by Deep Dey's avatar Deep Dey

chore: make mother image not required in frontend

parent 4971a9db
......@@ -101,7 +101,7 @@
</div>
<!-- start of parent information -->
<h3>PARENT INFORMATION</h3>
<h4>PARENT INFORMATION</h4>
<div class="la-form-group">
<label for="maritalStatus">Marital Status <span>*</span></label>
<select name="maritalStatus" class="la-form-control">
......@@ -115,7 +115,7 @@
</div>
<!-- Father Information -->
<h3>DETAILS OF FATHER</h3>
<h4>DETAILS OF FATHER / GUARDIAN</h4>
<div class="la-form-group">
<label for="fatherName">Full Name <span>*</span></label>
<input type="text" name="fatherName" class="la-form-control">
......@@ -190,7 +190,7 @@
</div>
<!-- end of Father Information -->
<!-- Mother Information -->
<h3>DETAILS OF MOTHER</h3>
<h4>DETAILS OF MOTHER</h4>
<div class="la-form-group">
<label for="motherName">Full Name <span>*</span></label>
<input type="text" name="motherName" class="la-form-control">
......@@ -275,7 +275,7 @@
</div>
<div class="la-form-group">
<img id="fatherImage" class="image-preview" src="./img/father.png" alt="father photo">
<label for="fatherImage">Fathers's Photo</label>
<label for="fatherImage" style="text-align: center;">Guardian's Photo</label>
<input type="file" name="fatherImage" class="la-form-control">
<div class="la-invalid-feedback"></div>
</div>
......
......@@ -112,11 +112,11 @@ $(document).ready(function () {
extension: ['jpg', 'png', 'jpeg', 'svg'],
fileSize: 1 * 1024 * 1024,
},
motherImage: {
required: true,
extension: ['jpg', 'png', 'jpeg', 'svg'],
fileSize: 1 * 1024 * 1024,
},
// motherImage: {
// required: true,
// extension: ['jpg', 'png', 'jpeg', 'svg'],
// fileSize: 1 * 1024 * 1024,
// },
},
messages: {
school: 'Please select your school',
......@@ -157,7 +157,7 @@ $(document).ready(function () {
fileSize: 'Please upload a file smaller than 1 MB',
},
fatherImage: {
required: "Father's photo is required",
required: "Guardian's photo is required",
extension: 'Only jpg, jpeg, png, svg files are allowed.',
fileSize: 'Please upload a file smaller than 1 MB',
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment