summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/ProjectList.page
blob: f55360c46f6b46efb90b15a4007f14956524f1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<com:TContent ID="Main">
<h2>Projects</h2>

<fieldset class="project-list">
<legend>Project List</legend>
<com:TDataGrid
	ID="projectList"
	AllowSorting="true"
	OnSortCommand="sortProjects"
	AutoGenerateColumns="false">
	<com:THyperLinkColumn
		HeaderText="Project Name"
		DataTextField="Name"
		DataNavigateUrlField="ID"
		SortExpression="Name"
		DataNavigateUrlFormatString="?page=TimeTracker.ProjectDetails&ProjectID=%d" />
	<com:TBoundColumn
		SortExpression="ManagerUserName"
		HeaderText="Project Manager"
		DataField="ManagerUserName" />
	<com:TBoundColumn
		SortExpression="Description"
		HeaderText="Description"
		DataField="Description" />
	<com:TTemplateColumn HeaderText="Completion" SortExpression="CompletionDate">
		<prop:ItemTemplate>
		<com:System.I18N.TDateFormat 
			Pattern="dd/MM/yyyy"
			Value=<%# $this->NamingContainer->DataItem->CompletionDate %> />
		</prop:ItemTemplate>
	</com:TTemplateColumn>
	<com:TBoundColumn
		SortExpression="EstimateDuration"
		HeaderText="Estimate Duration"
		DataField="EstimateDuration" />
</com:TDataGrid>
<div style="padding:1em">
	<a href="?page=TimeTracker.ProjectDetails">Create New Project</a>
</div>
</fieldset>

</com:TContent>