| 1 |
lars |
1 |
<com:TDataList ID="entries"
|
|
|
2 |
RepeatLayout="Raw"
|
|
|
3 |
DataKeyField="ID"
|
|
|
4 |
OnEditCommand="editEntryItem"
|
|
|
5 |
OnCancelCommand="refreshEntryList"
|
|
|
6 |
OnUpdateCommand="updateEntryItem"
|
|
|
7 |
OnDeleteCommand="deleteEntryItem"
|
|
|
8 |
OnItemCreated="EntryItemCreated" >
|
|
|
9 |
<prop:EmptyTemplate>
|
|
|
10 |
There are no time entries for this user.
|
|
|
11 |
</prop:EmptyTemplate>
|
|
|
12 |
<prop:HeaderTemplate>
|
|
|
13 |
<table class="time-entries">
|
|
|
14 |
<tr>
|
|
|
15 |
<th>Category Name</th>
|
|
|
16 |
<th>Description</th>
|
|
|
17 |
<th>Duration</th>
|
|
|
18 |
<th>Reported Date</th>
|
|
|
19 |
<th>Edit/Delete</th>
|
|
|
20 |
</tr>
|
|
|
21 |
</prop:HeaderTemplate>
|
|
|
22 |
|
|
|
23 |
<prop:FooterTemplate>
|
|
|
24 |
</table>
|
|
|
25 |
</prop:FooterTemplate>
|
|
|
26 |
<prop:ItemTemplate>
|
|
|
27 |
<tr>
|
|
|
28 |
<td class="categoryName"><%# h($this->DataItem->Category->Name) %></td>
|
|
|
29 |
<td class="description"><%# h($this->DataItem->Description) %></td>
|
|
|
30 |
<td class="duration"><%# h($this->DataItem->Duration) %></td>
|
|
|
31 |
<td class="date">
|
|
|
32 |
<com:System.I18N.TDateFormat
|
|
|
33 |
Pattern="dd/MM/yyyy"
|
|
|
34 |
Value=<%# $this->DataItem->ReportDate %> />
|
|
|
35 |
</td>
|
|
|
36 |
<td class="edit">
|
|
|
37 |
<com:TButton Text="Edit" CommandName="edit"/>
|
|
|
38 |
<com:TButton Text="Delete" CommandName="delete"
|
|
|
39 |
Attributes.onclick="if(!confirm('Are you sure?')) return false;" />
|
|
|
40 |
</td>
|
|
|
41 |
</tr>
|
|
|
42 |
</prop:ItemTemplate>
|
|
|
43 |
|
|
|
44 |
<prop:EditItemTemplate>
|
|
|
45 |
<tr>
|
|
|
46 |
<td class="categoryName">
|
|
|
47 |
<com:TDropDownList ID="category" />
|
|
|
48 |
</td>
|
|
|
49 |
<td class="description">
|
|
|
50 |
<com:TTextBox ID="description" Text=<%# $this->DataItem->Description %> />
|
|
|
51 |
</td>
|
|
|
52 |
<td class="duration">
|
|
|
53 |
<com:TTextBox ID="hours" Text=<%# $this->DataItem->Duration %> />
|
|
|
54 |
</td>
|
|
|
55 |
<td class="date">
|
|
|
56 |
<com:TDatePicker InputMode="DropDownList" ID="day"
|
|
|
57 |
TimeStamp=<%# $this->DataItem->ReportDate %> />
|
|
|
58 |
</td>
|
|
|
59 |
<td class="edit">
|
|
|
60 |
<com:TButton Text="Save" CommandName="update" ValidationGroup="entry-update"/>
|
|
|
61 |
<com:TButton Text="Cancel" CommandName="cancel" />
|
|
|
62 |
</td>
|
|
|
63 |
</tr>
|
|
|
64 |
</prop:EditItemTemplate>
|
|
|
65 |
|
|
|
66 |
</com:TDataList>
|