Skip to content

Commit

Permalink
Remove trim method in empty name cases
Browse files Browse the repository at this point in the history
Signed-off-by: swastik <[email protected]>
  • Loading branch information
swastkk committed Aug 1, 2024
1 parent 42bfb9f commit 85e610a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ <h4 class="modal-title" id="myModalLabel">{{terms.title|safe}}</h4>

// Example validation for name input (you can extend this for other fields)
var nameInput = card.find("input[name='name']");
if (nameInput.val().trim() === '') {
if (nameInput.val() === '') {
isValid = false;
nameInput.next(".help-block").text("Name is required.");
} else {
Expand Down
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ <h5 style="margin: 1rem 0 0.8rem;">Why should ISTE choose you?</h5>
<span class="js-fileName">{{i.cv_upload_input|safe}}</span>
</label>
<p style="color:#d33434d9;font-family: Cabin ,Helvetica Neue,Helvetica,Arial,sans-serif;">*Required</p>
<p style="color:#ffe300">(Reupload CV if cought in some error!)</p>
<p style="font-family: Cabin ,Helvetica Neue,Helvetica,Arial,sans-serif;
">**Also bring your CV in the interviews.</p>
{% if form.resume.errors %}
Expand Down

0 comments on commit 85e610a

Please sign in to comment.