| 1 |
lars |
1 |
<com:TContent ID="Main">
|
|
|
2 |
<h2>Time Entry</h2>
|
|
|
3 |
|
|
|
4 |
<div class="loghours">
|
|
|
5 |
|
|
|
6 |
<fieldset>
|
|
|
7 |
<legend>Log your hours</legend>
|
|
|
8 |
<div class="project">
|
|
|
9 |
<com:TLabel ForControl="projects" Text="Project:" />
|
|
|
10 |
<span class="required">*</span><br />
|
|
|
11 |
<com:TDropDownList ID="projects" AutoPostBack="true" OnSelectedIndexChanged="projects_Changed" />
|
|
|
12 |
</div>
|
|
|
13 |
|
|
|
14 |
<div class="category">
|
|
|
15 |
<com:TLabel ForControl="category" Text="Category:" />
|
|
|
16 |
<span class="required">*</span><br />
|
|
|
17 |
<com:TDropDownList ID="category" />
|
|
|
18 |
</div>
|
|
|
19 |
|
|
|
20 |
<div class="day">
|
|
|
21 |
<com:TLabel ForControl="day" Text="Day:" />
|
|
|
22 |
<span class="required">*</span><br />
|
|
|
23 |
<com:TDatePicker ID="day" InputMode="DropDownList" />
|
|
|
24 |
</div>
|
|
|
25 |
|
|
|
26 |
<div class="hours">
|
|
|
27 |
<com:TLabel ForControl="hours" Text="Hours:" />
|
|
|
28 |
<span class="required">*</span><br />
|
|
|
29 |
<com:TTextBox ID="hours" />
|
|
|
30 |
<com:TRequiredFieldValidator
|
|
|
31 |
ControlToValidate="hours"
|
|
|
32 |
Display="None"
|
|
|
33 |
CssClass="validator"
|
|
|
34 |
ValidationGroup="hours-add"
|
|
|
35 |
ControlCssClass="required-input"
|
|
|
36 |
ErrorMessage="Please enter your work hours." />
|
|
|
37 |
<com:TRangeValidator
|
|
|
38 |
ControlToValidate="hours"
|
|
|
39 |
DataType="Float"
|
|
|
40 |
MinValue="0"
|
|
|
41 |
MaxValue="9999"
|
|
|
42 |
CssClass="validator"
|
|
|
43 |
Display="None"
|
|
|
44 |
ValidationGroup="hours-add"
|
|
|
45 |
ControlCssClass="required-input1"
|
|
|
46 |
ErrorMessage="Hours must be between 0 and 9999" />
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
<div class="description">
|
|
|
50 |
<com:TLabel ForControl="description" Text="Description:" /><br/>
|
|
|
51 |
<com:TTextBox ID="description" TextMode="MultiLine" />
|
|
|
52 |
</div>
|
|
|
53 |
|
|
|
54 |
<div class="addEntry">
|
|
|
55 |
|
|
|
56 |
<com:TValidationSummary AutoUpdate="false" ValidationGroup="hours-add" />
|
|
|
57 |
|
|
|
58 |
<com:TButton Text="Add Entry" ValidationGroup="hours-add" OnClick="AddNewEntry" />
|
|
|
59 |
</div>
|
|
|
60 |
|
|
|
61 |
</fieldset>
|
|
|
62 |
|
|
|
63 |
</div>
|
|
|
64 |
|
|
|
65 |
<div class="timesheet">
|
|
|
66 |
<fieldset>
|
|
|
67 |
<legend>Time Sheet For:
|
|
|
68 |
<com:TDropDownList ID="projectMembers" CssClass="sheetfor"
|
|
|
69 |
AutoPostBack="True" OnSelectedIndexChanged="showTimeSheet" />
|
|
|
70 |
</legend>
|
|
|
71 |
|
|
|
72 |
<com:Application.pages.TimeTracker.TimeEntryList ID="entryList" />
|
|
|
73 |
|
|
|
74 |
</fieldset>
|
|
|
75 |
|
|
|
76 |
</div>
|
|
|
77 |
</com:TContent>
|