Skip to content

Commit

Permalink
feat:added members email to the admin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovit-Mathew236 committed Sep 9, 2024
1 parent 02f56a8 commit 1382ec2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions dist/forms/sih24.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ <h2 class="fs-2 fw-bolder">SIH'24</h2>
<thead>
<tr>
<th></th>
<th class="text-center CEO" colspan="8">Team Leader</th>
<th class="text-center CTO" colspan="4">Member 2</th>
<th class="text-center CMO" colspan="4">Member 3</th>
<th class="text-center CEO" colspan="4">Member 4</th>
<th class="text-center CTO" colspan="4">Member 5</th>
<th class="text-center CMO" colspan="4">Member 6</th>
<th class="text-center CEO" colspan="9">Team Leader</th>
<th class="text-center CTO" colspan="5">Member 2</th>
<th class="text-center CMO" colspan="5">Member 3</th>
<th class="text-center CEO" colspan="5">Member 4</th>
<th class="text-center CTO" colspan="5">Member 5</th>
<th class="text-center CMO" colspan="5">Member 6</th>
<th class="text-start CEO" colspan="4">Team</th>
<th class="text-start" colspan="8">Submission Docs</th>
</tr>
Expand All @@ -46,31 +46,37 @@ <h2 class="fs-2 fw-bolder">SIH'24</h2>
<th>Lead Year</th>
<th>Lead Email</th>
<th>Lead Phone</th>
<th>Lead Gender</th>
<th>Lead LinkedIn</th>
<th>Lead Github</th>
<th>Lead Food Preference</th>

<th>M2 Name</th>
<th>M2 Email</th>
<th>M2 Branch</th>
<th>M2 Year</th>
<th>M2 Food Preference</th>

<th>M3 Name</th>
<th>M3 Email</th>
<th>M3 Branch</th>
<th>M3 Year</th>
<th>M3 Food Preference</th>

<th>M4 Name</th>
<th>M4 Email</th>
<th>M4 Branch</th>
<th>M4 Year</th>
<th>M4 Food Preference</th>

<th>M5 Name</th>
<th>M5 Email</th>
<th>M5 Branch</th>
<th>M5 Year</th>
<th>M5 Food Preference</th>

<th>M6 Name</th>
<th>M6 Email</th>
<th>M6 Branch</th>
<th>M6 Year</th>
<th>M6 Food Preference</th>
Expand Down
18 changes: 16 additions & 2 deletions src/script/sih24.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,47 @@ function bodyTemplate(data, docId) {
<td>${data.teamLeader.currentYear}</td>
<td>${data.teamLeader.studentEmail}</td>
<td>${data.teamLeader.studentPhone}</td>
<td>${data.teamLeader.linkedin ? `<a href="${data.teamLeader.linkedin}">${data.teamLeader.linkedin}</a>` : ``}</td>
<td>${data.teamLeader.portfolio ? `<a href="${data.teamLeader.portfolio}">${data.teamLeader.portfolio}</a>` : ``}</td>
<td>${data.teamLeader.gender}</td>
<td>${
data.teamLeader.linkedin
? `<a href="${data.teamLeader.linkedin}">${data.teamLeader.linkedin}</a>`
: ``
}</td>
<td>${
data.teamLeader.portfolio
? `<a href="${data.teamLeader.portfolio}">${data.teamLeader.portfolio}</a>`
: ``
}</td>
<td>${
data.teamLeader.foodPreference || ""
}</td> <!-- Food Preference -->
<td>${data.members[0]?.member2Name || ""}</td>
<td>${data.members[0]?.member2Email || ""}</td>
<td>${data.members[0]?.member2Branch || ""}</td>
<td>${data.members[0]?.member2Year || ""}</td>
<td>${data.members[0]?.member2FoodPreference || ""}</td>
<td>${data.members[1]?.member3Name || ""}</td>
<td>${data.members[1]?.member3Email || ""}</td>
<td>${data.members[1]?.member3Branch || ""}</td>
<td>${data.members[1]?.member3Year || ""}</td>
<td>${data.members[1]?.member3FoodPreference || ""}</td>
<td>${data.members[2]?.member4Name || ""}</td>
<td>${data.members[2]?.member4Email || ""}</td>
<td>${data.members[2]?.member4Branch || ""}</td>
<td>${data.members[2]?.member4Year || ""}</td>
<td>${data.members[2]?.member4FoodPreference || ""}</td>
<td>${data.members[3]?.member5Name || ""}</td>
<td>${data.members[3]?.member5Email || ""}</td>
<td>${data.members[3]?.member5Branch || ""}</td>
<td>${data.members[3]?.member5Year || ""}</td>
<td>${data.members[3]?.member5FoodPreference || ""}</td>
<td>${data.members[4]?.member6Name || ""}</td>
<td>${data.members[4]?.member6Email || ""}</td>
<td>${data.members[4]?.member6Branch || ""}</td>
<td>${data.members[4]?.member6Year || ""}</td>
<td>${data.members[4]?.member6FoodPreference || ""}</td>
Expand Down

0 comments on commit 1382ec2

Please sign in to comment.