source: timingandestimationplugin/branches/trac0.12-Permissions/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>
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              <label for="$status">${status.capitalize()}: </label>
47              <input id="$status" name="$status" type="checkbox" checked="true" /> 
48            </py:for>
49            <script>
50              <py:for each="status in statuses" >
51               addBillingField("$status", "checkbox", true);
52              </py:for>
53            </script>
54          </div>
55
56      </td>
57    </tr><tr class="minorsection">
58      <td class="minorsectionleft" valign="top">
59    <label for="startdate" >Start Date:</label>
60    <span class="note">Times are only used for billing reports</span></td>
61      <td class="minorsectionright"><input id="startdate" name="startdate" type="text" /> or:<br />
62          <label for="startbilling" >Choose an old billing date:</label><br />
63          <select id="startbilling" name="startbilling" >
64            <option value="" ></option>
65              <py:for each="item in billing_info.billdates" >
66                <option value="$item.value" >$item.text</option>
67              </py:for>
68          </select>
69      </td>
70    </tr><tr class="minorsection">
71      <td class="minorsectionleft" valign="top"><label for="enddate" >End Date:</label>
72      </td>
73      <td class="minorsectionright">
74          <input id="enddate" name="enddate" type="text" /> or:<br />
75          <label for="endbilling" >Choose an old billing date:</label><br />
76          <select id="endbilling" name="endbilling" >
77            <option value="" ></option>
78              <py:for each="item in billing_info.billdates" >
79                <option value="$item.value" >$item.text</option>
80              </py:for>
81          </select>
82      </td>
83    </tr>
84  </table>
85  <ul id="reportlinks">
86  <py:for each="key in reports" >
87    <li>${reports[key]["title"]}
88      <h6 class="description">${reports[key]["description"]}</h6>
89      <ul>
90        <py:for each="report in reports[key]['reports']">
91          <li><a href="" onmouseover="linkify(this, '$billing_info.report_base_href/$report.id')"  >
92            $report.title
93          </a></li>     
94       </py:for>
95      </ul>
96    </li>
97  </py:for>
98
99  </ul>
100
101  <hr />
102  <div class="" py:if="is_time_admin">
103  <label for="newbilltime">New bill time
104    <span class="note">(leave blank for to set to now;  YYYY-MM-DD HH:MM:SS)</span>
105  </label>
106  <input type="text" value="" name="newbilltime" />
107  <input type="submit" name="setbillingtime" value="Set Billing Time" onclick="return confirm('Are you sure that you want to create a billed date?')" />&nbsp;
108  </div>
109</div>
110</form>
111</body>
112</html>
Note: See TracBrowser for help on using the repository browser.