source: timingandestimationplugin/branches/trac1.0-Permissions/timingandestimationplugin/templates/billing.html

Last change on this file was 17028, checked in by Russ Tyndall, 6 years ago

Fixing bug relating to <none> status in billing.html 1.5.7

File size: 4.2 KB
Line 
1<!DOCTYPE html
2    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml"
5      xmlns:py="http://genshi.edgewall.org/"
6      xmlns:xi="http://www.w3.org/2001/XInclude">
7  <xi:include href="layout.html" />x
8
9      <head>
10    <title>Time Tracking Management for Trac.11</title>
11    <script type="text/javascript" src="${chrome.htdocs_location}js/wikitoolbar.js"></script>
12    <script type="text/javascript" py:choose="">
13      $(document).ready(function() {
14          $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor("Link to this section");
15        });
16    </script>
17      </head>
18
19      <body>
20<form method="post" action="${billing_info.href}"  >
21<div id="content" class="billing">
22  <a href="$billing_info.usermanual_href" >$billing_info.usermanual_title</a>
23  <div id="messages" >
24    <py:for each="item in billing_info.messages" >
25      <div class="message" >$item</div>
26    </py:for>
27  </div>
28 
29  <h1>Report Criteria</h1>
30  <table border="0" cellspacing="0" cellpadding="0" class="minorsection">
31    <tr>
32      <td colspan="2" >
33            <div class="minorsection">
34        <div class="label" >Billing Status:</div>
35              <label for="billable">Billable: </label>
36              <input id="billable" name="billable" type="checkbox" checked="true" /> 
37
38            &nbsp;&nbsp;|&nbsp;&nbsp;
39              <label for="unbillable">Not Billable: </label>
40              <input id="unbillable" name="unbillable" type="checkbox"  /> 
41            </div>
42
43        <div class="minorsection">
44          <div class="label" >Status:</div>
45          <py:for each="status in statuses" >
46                <?python statusid = status.replace('>','').replace('<','') ?>
47        <label for="$statusid">${status.capitalize()}: </label>
48        <input id="$statusid" name="$statusid" type="checkbox" checked="true" /> 
49          </py:for>
50          <script>
51           <py:for each="status in statuses" >
52                 <?python statusid = status.replace('>','').replace('<','') ?>
53                 addBillingField("$statusid", "checkbox", true);
54           </py:for>
55          </script>
56        </div>
57
58
59      </td>
60    </tr><tr class="minorsection">
61      <td class="minorsectionleft" valign="top">
62    <label for="startdate" >Start Date:</label>
63    <span class="note">Times are only used for billing reports</span></td>
64      <td class="minorsectionright"><input id="startdate" name="startdate" type="text" /> or:<br />
65          <label for="startbilling" >Choose an old billing date:</label><br />
66          <select id="startbilling" name="startbilling" >
67            <option value="" ></option>
68              <py:for each="item in billing_info.billdates" >
69                <option value="$item.value" >$item.text</option>
70              </py:for>
71          </select>
72      </td>
73    </tr><tr class="minorsection">
74      <td class="minorsectionleft" valign="top"><label for="enddate" >End Date:</label>
75      </td>
76      <td class="minorsectionright">
77          <input id="enddate" name="enddate" type="text" /> or:<br />
78          <label for="endbilling" >Choose an old billing date:</label><br />
79          <select id="endbilling" name="endbilling" >
80            <option value="" ></option>
81              <py:for each="item in billing_info.billdates" >
82                <option value="$item.value" >$item.text</option>
83              </py:for>
84          </select>
85      </td>
86    </tr>
87  </table>
88
89  <h2>Reports</h2>
90
91  <py:for each="key in reports" >
92    <div>
93      <h3 class="title">${reports[key]["title"]}</h3>
94      <h6 class="description">${reports[key]["description"]}</h6>
95      <ul>
96        <py:for each="report in reports[key]['reports']">
97          <li><a href="" onmouseover="linkify(this, '$billing_info.report_base_href/$report.id')"  >
98            $report.title
99          </a></li>     
100        </py:for>
101      </ul>
102    </div>
103  </py:for>
104
105  <div class="" py:if="is_time_admin">
106  <label for="newbilltime">New bill time
107    <span class="note">(leave blank for to set to now;  YYYY-MM-DD HH:MM:SS)</span>
108  </label>
109  <input type="text" value="" name="newbilltime" />
110  <input type="submit" name="setbillingtime" value="Set Billing Time" onclick="return confirm('Are you sure that you want to create a billed date?')" />&nbsp;
111  </div>
112</div>
113</form>
114</body>
115</html>
Note: See TracBrowser for help on using the repository browser.