source: timingandestimationplugin/branches/trac0.12/timingandestimationplugin/templates/billing.html

Last change on this file was 11386, checked in by Russ Tyndall, 12 years ago

added example date format to trac 12 templates

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