-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathWidget-StudentDashboard.liquid
More file actions
45 lines (40 loc) · 2.04 KB
/
Copy pathWidget-StudentDashboard.liquid
File metadata and controls
45 lines (40 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% assign hackers = Queries.GetHackersForTeam | query %}
{% assign skillsInterest = Queries.GetItemsForHackathon | query: type: "SkillsInterest" %}
<v-container justify="center" >
<h1>Student Dashboard</h1>
<v-row justify="center">
<v-col cols="12" class="d-flex my-5 xs-12 flex-wrap" >
{% for hacker in hackers %}
{% assign user = hacker.UserId | users_by_id %}
{% assign phoneNumber = i.ContentItem.Content.SkillsInterest.PhoneNumber.Text %}
{% capture studentName %} {{hacker.FirstName}} {{hacker.LastName}} {% endcapture %}
{% assign fieldOfStudy = user.Properties.Hacker.Hacker.FieldOfStudy.Text %}
{% assign programLevel = user.Properties.Hacker.Hacker.ProgramLevel.Text %}
{% assign isHired = i.ContentItem.Content.SkillsInterest.Hired.Value %}
{% if fieldOfStudy and programLevel != null %}
<v-card class="pa-2 ma-3" width="30%">
<span class="d-flex justify-space-between align-center">
<v-card-title class="pb-0">{{studentName}}</v-card-title>
{% if isHired == "true" %}
<v-btn color="success" class="ma-3">
Hired
<v-icon right>mdi-checkbox-marked-circle</v-icon>
</v-btn>
{% endif %}
</span>
<v-card-subtitle class="py-0">{{hacker.Email}}</v-card-subtitle>
<v-card-subtitle class="pt-0" >{{ i.ContentItem.Content.SkillsInterest.PhoneNumber.Text}}</v-card-subtitle>
<v-card-text>
<div class="text-body-2">Field of Study:
<span class="font-weight-bold"> {{fieldOfStudy}} </span>
</div>
<div class="text-body-2">Program Level:
<span class="font-weight-bold"> {{programLevel}} </span>
</div>
<v-card-text>
</v-card>
{% endif %}
{% endfor %}
</v-col>
</v-row>
</v-container>