-
Notifications
You must be signed in to change notification settings - Fork 0
/
report-template.ejs
67 lines (56 loc) · 2.17 KB
/
report-template.ejs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.column {
float: left;
width: 50%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.text-right {
text-align: right;
}
</style>
</head>
<body>
<div>
<div class="header" style="text-align: center;">
<h1 class="header"><%= body.firstname + " " + body.lastname %></h1>
<p><%= body.email + " - " + body.phone %></p>
</div>
<p><%= body.summary %></p>
<h3>Experience</h3>
<% for (var i = 0; i < body.experiences.length; i++) { %>
<div class="row">
<div class="column">
<h5><%= body.experiences[i].employer_title %></h5>
<p><%= body.experiences[i].employer_name %></p>
</div>
<div class="column text-right">
<p><%= new Date(body.experiences[i].employer_start).toLocaleDateString('en-us', { year:"numeric", month:"short"}) %> - <%= new Date(body.experiences[i].employer_end).toLocaleDateString('en-us', { year:"numeric", month:"short"}) %></p>
</div>
</div>
<p><%= body.experiences[i].description %></p>
<% } %>
<br/>
<h3>Education</h3>
<% for (var i = 0; i < body.educations.length; i++) { %>
<div class="row">
<div class="column">
<h5><%= body.educations[i].school_degree %></h5>
<p><%= body.educations[i].school_name %></p>
</div>
<div class="column text-right">
<p><%= body.educations[i].school_grad_year %></p>
</div>
</div>
<p><%= body.educations[i].description %></p>
<% } %>
</div>
</body>
</html>