Skip to content

Commit 666af1a

Browse files
committed
added required tags
1 parent 8b821d4 commit 666af1a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

app/controllers/cvs_controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class CvsController {
1616

1717
const firstName = request.input('first_name')
1818
const lastName = request.input('last_name')
19-
const birthday = request.input('birthday')
19+
const birthdate = request.input('birthdate')
2020
const city = request.input('city')
2121
const phone = request.input('phone')
2222
const email = request.input('email')
@@ -76,7 +76,7 @@ export default class CvsController {
7676
const html = await view.render(`pages/templates/cv_template_1`, {
7777
firstName: firstName,
7878
lastName: lastName,
79-
birthday: birthday,
79+
birthdate: birthdate,
8080
city: city,
8181
phone: phone,
8282
profilePicture: photoBase64 ? `data:${contentType};base64,${photoBase64}` : null,

resources/views/pages/new.edge

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
</div>
7474

7575
<div>
76-
<label for="birthday" class="block text-sm font-medium text-white mb-1">Geboortedatum</label>
77-
<input type="date" id="birthday" name="birthday" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none" required>
76+
<label for="birthdate" class="block text-sm font-medium text-white mb-1">Geboortedatum</label>
77+
<input type="date" id="birthdate" name="birthdate" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none" required>
7878
</div>
7979

8080
<div>
@@ -106,12 +106,12 @@
106106

107107
<div class="md:col-span-2">
108108
<label for="job_title" class="block text-sm font-medium text-white mb-1">Werk titel</label>
109-
<input type="text" id="job_title" name="job_title" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none">
109+
<input type="text" id="job_title" name="job_title" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none" required>
110110
</div>
111111

112112
<div class="md:col-span-2">
113113
<label for="job_title" class="block text-sm font-medium text-white mb-1">Je beschrijving</label>
114-
<textarea id="profile" name="profile" rows="5" placeholder="Schrijf een korte alinia over jezelf" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none resize-none"></textarea>
114+
<textarea id="profile" name="profile" rows="5" placeholder="Schrijf een korte alinia over jezelf" class="w-full bg-purple-800 text-white placeholder-gray-300 border border-purple-700 rounded-md p-2 focus:ring-2 focus:ring-purple-900 focus:outline-none resize-none" required></textarea>
115115

116116
</div>
117117
</div>

resources/views/pages/templates/cv_template_1.edge

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<img src="{{ profilePicture }}" alt="Profile Picture" class="rounded-full w-36 h-36 object-cover" />
2121
@endif
2222

23-
<p>{{ birthday }}</p>
23+
@if (birthdate)
24+
<p>{{ birthdate }}</p>
25+
@endif
2426

2527
<p class="text-purple-700 font-semibold text-1xl">{{ jobTitle }}</p>
2628
<div class="text-gray-600 space-y-1">

0 commit comments

Comments
 (0)