Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<com:TContent ID="Main">
2
<h2>Project Reports</h2>
3
 
4
<fieldset class="project-report">
5
	<legend>Project Report</legend>
6
<com:TMultiView ID="views" ActiveViewIndex="0">
7
	<com:TView>
8
		<com:TLabel ForControl="projectList"
9
			Text="Select a project. Use ctrl+click to select multiple projects at once: "/>
10
		<span class="required">*</span><br />
11
		<com:TListBox ID="projectList" CssClass="projects" SelectionMode="Multiple" />
12
		<com:TRequiredFieldValidator
13
			Style="display:block"
14
			ControlToValidate="projectList"
15
			ErrorMessage="Please select at least one project."
16
			ControlCssClass="required-input" />
17
		<div class="buttons">
18
		<com:TButton Text="Generate Report" OnClick="generateReport_Clicked"/>
19
		</div>
20
	</com:TView>
21
	<com:TView>
22
		<com:TRepeater ID="projects" onItemCreated="project_itemCreated" EnableViewState="false">
23
		<prop:ItemTemplate>
24
		<!-- project -->
25
			<table class="project">
26
				<tr>
27
					<th class="name">Project Name</th>
28
					<th class="est-hour">Est. Hours</th>
29
					<th class="hours">Actual Hours</th>
30
					<th class="completion">Est. Completion</th>
31
				</tr>
32
				<tr>
33
					<td class="name"><%# h($this->DataItem->ProjectName) %></td>
34
					<td class="est-hour"><%# h($this->DataItem->EstimateHours) %></td>
35
					<td class="hours"><%# h($this->DataItem->ActualHours) %></td>
36
					<td class="completion">
37
						<com:System.I18N.TDateFormat
38
							Pattern="dd/MM/yyyy"
39
							Value=<%# $this->DataItem->EstimateCompletion %> />
40
					</td>
41
				</tr>
42
 
43
			<com:TRepeater ID="category" onItemCreated="Page.category_itemCreated" EnableViewState="false">
44
			<prop:HeaderTemplate>
45
				<tr><td class="left-filler">&nbsp;</td><td colspan="2" class="sub-table">
46
			</prop:HeaderTemplate>
47
			<prop:FooterTemplate>
48
				</td><td class="right-filler">&nbsp;</td></tr>
49
			</prop:FooterTemplate>
50
			<prop:ItemTemplate>
51
 
52
			<!-- category -->
53
				<table class="category">
54
					<tr>
55
					<th class="category">Category</th>
56
					<th class="est-hour">Est. Hours</th>
57
					<th class="hours">Actual Hours</th>
58
					</tr>
59
					<tr>
60
						<td class="category"><%# h($this->DataItem->CategoryName) %></td>
61
						<td class="est-hour"><%# h($this->DataItem->EstimateHours) %></td>
62
						<td class="hours"><%# h($this->DataItem->ActualHours) %></td>
63
					</tr>
64
 
65
 
66
				<com:TRepeater ID="members" EnableViewState="false">
67
					<prop:ItemTemplate>
68
					<!-- member -->
69
						<tr>
70
							<td colspan="2" class="username">
71
							<%# h($this->DataItem['username']) %>
72
						</td>
73
						<td class="hours">
74
							<%# h($this->DataItem['hours']) %>
75
						</td>
76
						</tr>
77
					<!-- //member -->
78
					</prop:ItemTemplate>
79
				</com:TRepeater>
80
 
81
				</table>
82
			<!-- //category -->
83
 
84
			</prop:ItemTemplate>
85
			</com:TRepeater>
86
 
87
			</table>
88
		<!-- //project -->
89
		</prop:ItemTemplate>
90
		</com:TRepeater>
91
	</com:TView>
92
</com:TMultiView>
93
 
94
</fieldset>
95
 
96
</com:TContent>