forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manageClient.xsl
300 lines (287 loc) · 11.5 KB
/
manageClient.xsl
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="footer.xsl"/>
<xsl:include href="headerback.xsl"/>
<!-- Local includes -->
<xsl:include href="local/footer.xsl"/>
<xsl:include href="local/headerback.xsl"/>
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="cdash/title"/></title>
<meta name="robots" content="noindex,nofollow" />
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="StyleSheet" type="text/css">
<xsl:attribute name="href"><xsl:value-of select="cdash/cssfile"/></xsl:attribute>
</link>
<xsl:call-template name="headscripts"/>
<script src="javascript/cdashClient.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<xsl:choose>
<xsl:when test="/cdash/uselocaldirectory=1">
<xsl:call-template name="headerback_local"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="headerback"/>
</xsl:otherwise>
</xsl:choose>
<br/>
<!-- Message -->
<div style="color: green;"><xsl:value-of select="cdash/message" /></div>
<xsl:if test="count(cdash/project/repository)=0">
You should set the <a>
<xsl:attribute name="href">
createProject.php?edit=1&projectid=<xsl:value-of select="cdash/project/id" />#fragment-3
</xsl:attribute>
project repository</a> before starting.<br/>
</xsl:if>
<xsl:if test="count(cdash/os)=0">
No sites are currently available. You should run the CTest script in order to register at least one client.<br/>
Visit <a href="http://public.kitware.com/Wiki/CDash:Build_Management">the wiki page</a> for more information on how to set this up.
</xsl:if>
<xsl:if test="count(cdash/os)>0">
<xsl:if test="count(cdash/project/repository)>0">
<form method="post" action="">
<table id="form_table">
<tr>
<td align="right"><b>Project:</b></td>
<td><xsl:value-of select="cdash/project/name" /></td>
</tr>
<tr>
<td align="right" valign="top">
<b>Repository:</b>
</td>
<td>
<select name="repository" id="repository_select">
<xsl:for-each select="/cdash/project/repository">
<option>
<xsl:attribute name="value"><xsl:value-of select="url"/></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="url"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Alternative Repository:</b>
</td>
<td>
<input name="otherrepository" type="text" size="60">
<xsl:attribute name="value"><xsl:value-of select="/cdash/otherrepository"/></xsl:attribute>
</input>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Module/Branch:</b>
</td>
<td>
<input name="module" type="text" size="60">
<xsl:attribute name="value"><xsl:value-of select="/cdash/module"/></xsl:attribute>
</input>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Tag:</b>
</td>
<td>
<input name="tag" type="text" size="60">
<xsl:attribute name="value"><xsl:value-of select="/cdash/tag"/></xsl:attribute>
</input>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>BuildName Suffix:</b>
</td>
<td>
<input name="buildnamesuffix" type="text" size="60">
<xsl:attribute name="value"><xsl:value-of select="/cdash/buildnamesuffix"/></xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Operating System:</b><br/><a href="#" onclick="return clearOS();">[clear all]</a></td>
<td>
<select multiple="multiple" name="system[]" id="system_select" onchange="checkSystem();">
<xsl:for-each select="/cdash/os">
<option>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Compiler:</b><br/><a href="#" onclick="return clearCompiler();">[clear all]</a></td>
<td>
<select multiple="multiple" name="compiler[]" id="compiler_select" onchange="checkSystem();">
<xsl:for-each select="/cdash/compiler">
<option>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td valign="top" align="right"><b>CMake:</b><br/><a href="#" onclick="return clearCMake()">[clear all]</a></td>
<td>
<select multiple="multiple" name="cmake[]" id="cmake_select" onchange="checkSystem();">
<xsl:for-each select="/cdash/cmake">
<option>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="version"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Libraries:</b><br/><a href="#" onclick="return clearLibrary()">[clear all]</a></td>
<td>
<select multiple="multiple" name="library[]" id="library_select" onchange="checkSystem();">
<xsl:for-each select="/cdash/library">
<option>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Site:</b><br/><a href="#" onclick="return clearSite()">[clear all]</a></td>
<td>
<select multiple="multiple" name="site[]" id="site_select" onchange="checkSystem();">
<xsl:for-each select="/cdash/site">
<option>
<xsl:if test="availablenow=0"><xsl:attribute name="style">color:red</xsl:attribute></xsl:if>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select><br/>
Sites marked in <font color="red">red</font> have not been responding in the last 5 minutes.
<div id="check"></div>
<br/>
</td>
</tr>
<tr>
<td align="right" valign="top"><b>Initial CMakeCache:</b></td>
<td><textarea style="width:600px" rows="4" id="cmakecache" name="cmakecache"><xsl:value-of select="/cdash/cmakecache"/></textarea></td>
</tr>
<tr>
<td align="right" valign="top"><b>Job-specific client script:</b></td>
<td><textarea style="width:600px" rows="10" id="clientscript" name="clientscript"><xsl:value-of select="/cdash/clientscript"/></textarea></td>
</tr>
<tr>
<td align="right" valign="top"><b>Type:</b></td>
<td><select name="type">
<option value="0"><xsl:if test="/cdash/type=0"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>Experimental</option>
<option value="1"><xsl:if test="/cdash/type=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>Nightly</option>
<option value="2"><xsl:if test="/cdash/type=2"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>Continuous</option>
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Build Configuration:</b>
</td>
<td>
<select name="buildconfiguration" id="buildconfiguration_select">
<xsl:for-each select="/cdash/buildconfiguration">
<option>
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
<xsl:if test="selected=1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr>
<td align="right" valign="top"><b>Start date:</b></td>
<td><input name="startdate" type="text" size="19" maxlength="19">
<xsl:attribute name="value"><xsl:value-of select="/cdash/startdate" /></xsl:attribute>
</input></td>
</tr>
<tr>
<td align="right" valign="top"><b>End date:</b></td>
<td><input name="enddate" type="text" size="19" maxlength="19">
<xsl:attribute name="value"><xsl:value-of select="/cdash/enddate" /></xsl:attribute>
</input></td>
</tr>
<tr>
<td align="right" valign="top"><b>Start time:</b></td>
<td><input name="starttime" type="text" size="8" maxlength="8">
<xsl:attribute name="value"><xsl:value-of select="/cdash/starttime" /></xsl:attribute>
</input>
</td>
</tr>
<tr>
<td align="right" valign="top"><b>Repeat every:</b></td>
<td><input name="repeat" type="text" size="4" maxlength="4">
<xsl:attribute name="value"><xsl:value-of select="/cdash/repeat" /></xsl:attribute>
</input>
hour(s)</td>
</tr>
<tr>
<td align="right" valign="top"><b>Enable:</b></td>
<td><input name="enable" type="checkbox">
<xsl:if test="/cdash/enable=1">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
</td>
</tr>
<tr>
<td align="right" valign="top"><b>Description:</b></td>
<td><input maxlength="255" id="description" name="description" size="100">
<xsl:attribute name="value"><xsl:value-of select="/cdash/description"/></xsl:attribute>
</input></td>
</tr>
<tr>
<td></td>
<td>
<xsl:choose>
<xsl:when test="/cdash/edit=1"><input name="update" type="submit" value="Update Schedule >>" /></xsl:when>
<xsl:otherwise><input name="submit" type="submit" value="Schedule >>" /></xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</form>
</xsl:if>
</xsl:if>
<div id="result" style="display:none;">
<img src="images/loading.gif" /></div>
<!--
<xsl:if test="/cdash/edit=1">
<hr/>
<h3>Builds Submitted For This Job</h3>
<xsl:for-each select="/cdash/build">
<a><xsl:attribute name="href">buildSummary.php?buildid=<xsl:value-of select="id" /></xsl:attribute><xsl:value-of select="id" /></a><br />
</xsl:for-each>
</xsl:if>
-->
<!-- FOOTER -->
<br/><br/>
<xsl:call-template name="footer"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>