diff options
author | Clint Adams <clint@softwarefreedom.org> | 2013-07-19 15:25:08 -0400 |
---|---|---|
committer | Clint Adams <clint@softwarefreedom.org> | 2013-07-19 15:25:08 -0400 |
commit | f8b325748a3631df00841f3524b6e1f95a4e30f4 (patch) | |
tree | 3eb0d418d8a2ece33774f770e6086108c3ef6c86 /templates/userpage.hamlet | |
parent | 10f6e8f4cce3303f53df359e0f40fcb5d584e85d (diff) |
Update to newer Yesod.
Diffstat (limited to 'templates/userpage.hamlet')
-rw-r--r-- | templates/userpage.hamlet | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/templates/userpage.hamlet b/templates/userpage.hamlet index 27353d0..4205d2c 100644 --- a/templates/userpage.hamlet +++ b/templates/userpage.hamlet @@ -1,21 +1,35 @@ <h1>#{username} -$if isUser +$forall Entity _ emp <- employments + <p>From # + <strong> + #{show (employmentStartDate emp)} + $maybe enddate <- employmentEndDate emp + \ until # + <strong> + #{show enddate} + +$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 - $forall (a,b,c) <- entries + <th>Note + $forall (a,b,c,d,e) <- entries <tr .timeentry> - <td>#{a} - <td>#{b} + <td> + <a href=@{CategoryR a}> + #{timeCategoryName b} <td>#{c} + <td>#{d} + <td>#{e} ^{pageNavWidget} |