summaryrefslogtreecommitdiff
path: root/templates/userpage.hamlet
blob: bacd29928e02d80ef198ed04409c6f0d348e0171 (plain)
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
<h1>#{username}

$forall Entity _ emp <- employments
  <p>From #
    <strong>
      #{show (employmentStartDate emp)}
    $maybe enddate <- employmentEndDate emp
      \ until #
      <strong>
        #{show enddate}
    $if parttime emp
      , part-time at #
      <strong>
        #{show (employmentCommitment emp)}
    $else
      , full-time


$if isThisUser
  <p>
    <form method=post action=@{UserR cid}#form enctype=#{formEnctype}>
      ^{formWidget}
      <input type="submit" value="Submit time entry">
$else


<table>
    <tr>
      <th>Category
      <th>Hours
      <th>Date
      <th>Note
  $forall (a,b,c,d,e) <- entries
    <tr .timeentry>
      <td>
        <a href=@{CategoryR a}>
          #{timeCategoryName b}
      <td>#{c}
      <td>#{d}
      <td>#{e}

^{pageNavWidget}

<p>
  <a href=@{VacationR cid}>PTO report