Contents of /trunk/flyspray/themes/Magellan/templates/details.tabs.efforttracking.tpl
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 2533 byte(s)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 2533 byte(s)
-import flyspray-1.0-beta Magellan theme
1 | <div id="effort" class="tab"> |
2 | <?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#effort'); ?> |
3 | <?php if ($user->perms('track_effort')) { ?> |
4 | <input type="hidden" name="action" value="details.efforttracking"/> |
5 | <button type="submit" name="start_tracking" value="true"><?php echo Filters::noXSS(L('starteffort')); ?></button> |
6 | <br /> |
7 | <label for="effort_to_add"><?php echo Filters::noXSS(L('manualeffort')); ?></label> |
8 | <input id="effort_to_add" name="effort_to_add" class="text" type="text" size="5" maxlength="100" value='00:00'/> |
9 | <button type="submit" name="manual_effort" value="true"><?php echo Filters::noXSS(L('addeffort')); ?></button> |
10 | <?php } ?> |
11 | <table class="userlist history"> |
12 | <thead> |
13 | <tr> |
14 | <th><?php echo Filters::noXSS(L('date')); ?></th> |
15 | <th><?php echo Filters::noXSS(L('user')); ?></th> |
16 | <th><?php echo Filters::noXSS(L('effort')); ?> (H:M)</th> |
17 | <th></th> |
18 | </tr> |
19 | </thead> |
20 | <tbody> |
21 | <?php |
22 | foreach($effort->details as $details){ |
23 | ?> |
24 | <tr> |
25 | <td><?php echo Filters::noXSS(formatDate($details['date_added'], true)); ?></td> |
26 | <td><?php echo tpl_userlink($details['user_id']); ?></td> |
27 | <td><?php |
28 | if($details['effort'] == 0) |
29 | { ?> |
30 | <?php echo Filters::noXSS(L('trackinginprogress')); ?> (<?php |
31 | |
32 | echo effort::SecondsToString(time()-$details['start_timestamp'], $proj->prefs['hours_per_manday'], $proj->prefs['current_effort_done_format']); |
33 | |
34 | ?>) |
35 | <?php } |
36 | else |
37 | { |
38 | echo effort::SecondsToString($details['effort'], $proj->prefs['hours_per_manday'], $proj->prefs['current_effort_done_format']); |
39 | } ?> |
40 | </td> |
41 | <td> |
42 | <?php if($user->id == $details['user_id'] & is_null($details['end_timestamp'])){ ?> |
43 | <button type="submit" name="stop_tracking" value="true"><?php echo Filters::noXSS(L('endeffort')); ?></button> |
44 | <button type="submit" name="cancel_tracking" value="true"><?php echo Filters::noXSS(L('cleareffort')); ?></button> |
45 | <?php } ?> |
46 | </td> |
47 | </tr> |
48 | <?php } ?> |
49 | </tbody> |
50 | </table> |
51 | </form> |
52 | </div> |