summaryrefslogtreecommitdiff
path: root/templates/userpage.hamlet
blob: 8a9336a43b0d0c50b945dd57916648cf021da527 (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
46
47
48
49
50
<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 isAssistant
  <p>
    ASSISTANT
$else


$if isThisUser || isAssistant
  <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