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
<h1>Resource Report</h1>
3
 
4
<fieldset class="resource-report">
5
	<legend>Resource Report</legend>
6
	<com:TMultiView ID="views" ActiveViewIndex="0">
7
	<com:TView>
8
		<div class="step1">
9
		<h2>STEP 1 - Select project(s)</h2>
10
		<com:TLabel ForControl="projectList"
11
			Text="Select a project. Use ctrl+click to select multiple projects at once: "/>
12
		<span class="required">*</span><br />
13
		<com:TListBox ID="projectList" CssClass="projects" SelectionMode="Multiple" />
14
		<com:TRequiredFieldValidator
15
			ControlToValidate="projectList"
16
			ErrorMessage="Please select at least one project."
17
			ControlCssClass="required-input"
18
			Display="None" />
19
		</div>
20
		<div class="step2">
21
		<h2>STEP 2 - Select resource(s)</h2>
22
		<com:TLabel ForControl="resourceList"
23
			Text="Select a resource. Use ctrl+click to select multiple resources at once: "/>
24
		<span class="required">*</span><br />
25
		<com:TListBox ID="resourceList" CssClass="resource" SelectionMode="Multiple" />
26
		<com:TRequiredFieldValidator
27
			ControlToValidate="resourceList"
28
			ErrorMessage="Please select at least one member."
29
			ControlCssClass="required-input"
30
			Display="None" />
31
		</div>
32
		<div class="step1">
33
		<h2>STEP 3 - Select a date range</h2>
34
		<div class="date-from">
35
		<com:TLabel ForControl="dateFrom" Text="Dates from:"/>
36
		<span class="required">*</span><br />
37
		<com:TDatePicker id="dateFrom"
38
			DateFormat="dd/MM/yyyy"
39
			TimeStamp=<%= strtotime("-1 year") %>
40
			InputMode="DropDownList" />
41
		</div>
42
		<div class="date-to">
43
		<com:TLabel ForControl="dateTo" Text="Date to:"/>
44
		<span class="required">*</span><br />
45
		<com:TDatePicker id="dateTo" DateFormat="dd/MM/yyyy" InputMode="DropDownList"/>
46
		<com:TCompareValidator
47
			ControlToValidate="dateTo"
48
			ControlToCompare="dateFrom"
49
			DataType="Date"
50
			Display="None"
51
			ControlCssClass="required-input"
52
			DateFormat="dd/MM/yyyy"
53
			Operator="GreaterThanEqual"
54
			ErrorMessage="The end date must be greater or equal to the start date." />
55
		</div>
56
		</div>
57
		<div class="actions">&nbsp;
58
		<div class="summary">
59
		<com:TValidationSummary
60
			AutoUpdate="false" />
61
		</div>
62
		<div class="buttons">
63
			<com:TButton Text="Generate Report" Onclick="generateReport_Clicked"/>
64
		</div>
65
		</div>
66
	</com:TView>
67
 
68
	<com:TView>
69
		<div class="date-range">
70
		 <h3 class="begin">Beginning Date:</h3>
71
		 <h4 class="begin"><%= h($this->dateFrom->Date) %></h4>
72
		 <h3 class="end">Ending Date:</h3>
73
		 <h4 class="end"><%= h($this->dateTo->Date) %></h4>
74
		</div>
75
		 <com:TRepeater ID="resource_report" OnItemCreated="resource_report_itemCreated" EnableViewState="false">
76
		 	<prop:ItemTemplate>
77
		 	<div class="resource">
78
		 	<strong class="name">Consultant:</strong>
79
		 	<span class="name"><%# h($this->DataItem->Username) %></span>
80
		 	<strong class="hours">Total Hours:</strong>
81
		 	<span class="hours"><%# h($this->DataItem->TotalHours) %></span>
82
 
83
		 	<com:TRepeater ID="time_entries">
84
			 	<prop:HeaderTemplate>
85
			 		<table class="project">
86
			 			<tr>
87
			 				<th class="date">Reported Date</th>
88
			 				<th class="project">Project Name</th>
89
			 				<th class="category">Category Name</th>
90
			 				<th class="hours">Duration</th>
91
			 				<th class="description">Description</th>
92
			 			</tr>
93
			 	</prop:HeaderTemplate>
94
			 	<prop:FooterTemplate>
95
			 		</table>
96
			 	</prop:FooterTemplate>
97
			 	<prop:ItemTemplate>
98
			 	<tr>
99
			 		<td class="date"><com:System.I18N.TDateFormat
100
								Pattern="dd/MM/yyyy"
101
								Value=<%# $this->DataItem->ReportDate %> />
102
					</td>
103
			 		<td class="project"><%# h($this->DataItem->ProjectName) %></td>
104
			 		<td class="category"><%# h($this->DataItem->CategoryName) %></td>
105
			 		<td class="hours"><%# h($this->DataItem->Duration) %></td>
106
			 		<td class="description"><%# h($this->DataItem->Description) %></td>
107
			 	</tr>
108
			 	</prop:ItemTemplate>
109
			 	</com:TRepeater>
110
			</div>
111
		 	</prop:ItemTemplate>
112
		 </com:TRepeater>
113
 
114
	</com:TView>
115
 
116
	</com:TMultiView>
117
</fieldset>
118
</com:TContent>