Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
szobatinder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Schulcz Ferenc
szobatinder
Commits
3049eac5
Commit
3049eac5
authored
May 19, 2022
by
Ferenc Schulcz
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: error on empty required fields, frontend
parent
7f5410bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
views/profile.ejs
+14
-7
14 additions, 7 deletions
views/profile.ejs
with
14 additions
and
7 deletions
views/profile.ejs
+
14
−
7
View file @
3049eac5
...
@@ -13,30 +13,37 @@
...
@@ -13,30 +13,37 @@
<form action="/profile" , method="post">
<form action="/profile" , method="post">
<label for="name">Name: </label>
<label for="name">Name: </label>
<input type="text" id="name" name="name" value="<%= profile.name %>"><br>
<input required type="text" id="name" name="name"
value="<%= (typeof profile === 'undefined') ? '' : profile.name %>"><br>
<p class="form-helper">You surely have a colorful name!</p>
<p class="form-helper">You surely have a colorful name!</p>
<label for="bio">Bio: </label><br>
<label for="bio">Bio: </label><br>
<textarea id="bio" name="bio" rows="6"><%= profile.bio %></textarea><br>
<textarea required id="bio" name="bio"
rows="6"><%= (typeof profile === 'undefined') ? '' : profile.bio %></textarea><br>
<label for="member1">Member #1: </label>
<label for="member1">Member #1: </label>
<input type="text" id="member1" name="member1" value="<%= profile.member1 %>"><br>
<input required type="text" id="member1" name="member1"
value="<%= (typeof profile === 'undefined') ? '' : profile.member1 %>"><br>
<p class="form-helper">Type your own name here</p>
<p class="form-helper">Type your own name here</p>
<label for="member2">Member #2: </label>
<label for="member2">Member #2: </label>
<input type="text" id="member2" name="member2" value="<%= profile.member2 %>"><br>
<input type="text" id="member2" name="member2"
value="<%= (typeof profile === 'undefined') ? '' : profile.member2 %>"><br>
<p class="form-helper">If you're not alone, enter your roommate's name</p>
<p class="form-helper">If you're not alone, enter your roommate's name</p>
<label for="member3">Member #3: </label>
<label for="member3">Member #3: </label>
<input type="text" id="member3" name="member3" value="<%= profile.member3 %>"><br>
<input type="text" id="member3" name="member3"
value="<%= (typeof profile === 'undefined') ? '' : profile.member3 %>"><br>
<p class="form-helper">Enter the 3rd roommate's name if you're 3</p>
<p class="form-helper">Enter the 3rd roommate's name if you're 3</p>
<label for="contact">Contact: </label>
<label for="contact">Contact: </label>
<input type="text" id="contact" name="contact" value="<%= profile.contact %>"><br>
<input required type="text" id="contact" name="contact"
value="<%= (typeof profile === 'undefined') ? '' : profile.contact %>"><br>
<p class="form-helper">This will be visible to your matches only</p>
<p class="form-helper">This will be visible to your matches only</p>
<label for="active">Show in browsing: </label>
<label for="active">Show in browsing: </label>
<input type="checkbox" id="active" name="active" checked="<%= profile.active %>"><br>
<input type="checkbox" id="active" name="active"
checked="<%= (typeof profile === 'undefined') ? '' : profile.active %>"><br>
<p class="form-helper">If you untick this box, your profile will be hidden from potential matches</p>
<p class="form-helper">If you untick this box, your profile will be hidden from potential matches</p>
<input type="submit" class="button" value="Save">
<input type="submit" class="button" value="Save">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment