/[scire]/trunk/scire/.smarty/templates/add_job.tpl
Gentoo

Contents of /trunk/scire/.smarty/templates/add_job.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 233 - (show annotations) (download) (as text)
Sat Jul 21 02:09:06 2007 UTC (10 years, 3 months ago) by codeman
Original Path: scire/.smarty/templates/add_job.tpl
File MIME type: application/vnd.groove-tool-template
File size: 8136 byte(s)
adding changes from Rodrigo Lazo (rlazo) for Google SoC:
modified add_job.php to make use of the new scheduling logic, plus other minor changes

1 {include file="header.tpl" title="Add A Job"}
2 <form action="" method="post" name="add_jobform">
3 Step 1: select a script.<br>
4 Step 2: select a client or multiple clients and/or clientgroups.<br>
5 Step 3: set
6 <hr>
7 <table width="100%" border="0" cellspacing="0" cellpadding="5">
8 <tr>
9 <td align="left" valign="top">
10 <table class="box" width="90%" border="1" cellspacing="0" cellpadding="0">
11 <tr>
12 <td class="boxtitle">Script Selection</td>
13 </tr>
14 <tr>
15 <td>
16 <table border="0" cellspacing="0" cellpadding="5">
17 <tr>
18 <td><label for="scripts">Scripts:</label></td>
19 </tr>
20 <tr>
21 {if isset($get.scriptid)}
22
23 <td>Selected script:</td>
24 <td><input type="hidden" name="script" value="{$script.scriptid}">{$script.name}</td>
25 {else}
26 <td>Categories will go here</td>
27 <td>
28 <select name="script" size="10" >
29 {foreach from=$scripts item=script key=key}
30 <option value="{$script.scriptid}">
31 {$script.name}</option>
32 {/foreach}
33 </select>
34 </td>
35 {/if}
36 </tr>
37 {if !isset($get.scriptid)}
38 <tr>
39 <td colspan="2">Or just type in the ID of the script: <input type="text" name="scriptID" ></td>
40 </tr>
41 {/if}
42 <tr>
43 <td colspan="2"><hr><h4>Override Script default values:</h4><br>
44 Permission: <select size="1" name="permission">
45 {foreach from=$perms item=perm key=id}
46 <option value="{$perm}"
47 {if isset($script.permission)}
48 {if $perm eq $script.permission} selected {/if}
49 {/if}
50 >{$perm}</option>
51 {/foreach}
52 </select><br>
53
54 Set Priority: <select size="1" name="priority">
55 {foreach from=$priorities item=priority key=id}
56 <option value="{$priority}"
57 {if isset($script.priority)}
58 {if $priority eq $script.priority} selected {/if}
59 {/if}
60 >{$priority}</option>
61 {/foreach}
62 </select><br>
63 Log Location: <input type="text" name="log_location" value="{$script.log_location}"><br>
64 Success Code: (not worrying bout this now)<br>
65 Set dynamic content: <br>
66 </td>
67 </tr>
68 </table>
69 </td>
70 </tr>
71 </table>
72 </td>
73
74 <td align="right" valign="top">
75 <table class="box" width="50%" border="1" cellspacing="0" cellpadding="0">
76 <tr>
77 <td class="boxtitle">Client Selection</td>
78 </tr>
79 <tr>
80 <td>
81 <table border="0" cellspacing="0" cellpadding="5">
82 <tr>
83 {if isset($get.clientid)}
84
85 <td>Selected client:</td>
86 <td><input type="hidden" name="clients[]" value="{$client.hostname}">{$client.hostname}</td>
87 {elseif isset($get.cgroupid)}
88 <td>Selected clientgroup:</td>
89 <td><input type="hidden" name="cgroups[]" value="{$get.cgroupid}">NAME HERE</td>
90 {else}
91 <td><label for="clientgroups">Clientgroups:</label></td>
92 <td><label for="clients">Clients:</label></td>
93 </tr>
94 <tr>
95 <td>
96 <select name="clientgroups[]" size="18" multiple="multiple">
97 {foreach from=$cgroups item=cgroup key=id}
98 <option value="{$id}">{$cgroup}</option>
99 {/foreach}
100 </select>
101 </td>
102 <td>
103 <select name="clients[]" size="18" multiple="multiple">
104 {section loop=$clients name=clients}
105 <option value="{$clients[clients].clientid}">{$clients[clients].hostname}</option>
106 {/section}
107 </select>
108 </td>
109 {/if}
110 </tr>
111 </table>
112 </td>
113 </tr>
114 </table>
115 Input staging client hostname (optional): <input type="text" name="staging"><br>
116 Staging success: <input type="radio" name="staging_success" value="result">Positive Result Code <input type="radio" name="staging_success" value="user">Manually approved
117 </td>
118 </tr>
119 </table>
120 <hr>
121 Job Description: <br><textarea name="description" rows="3" cols="40"></textarea><br>
122 Recurring stuff here.<br>
123 <table>
124 <tr><td>Minute(s):<br>
125 <select multiple name=minute1 size=10>
126 <option value=*> Every Minute
127 <option value=*/2> Every Other Minute
128 <option value=*/5> Every Five Minutes
129 <option value=*/10> Every Ten Minutes
130 <option value=*/15> Every Fifteen Minutes
131 <option value=0> 0
132 <option value=1> 1
133
134 <option value=2> 2
135 <option value=3> 3
136 <option value=4> 4
137 <option value=5> 5
138 <option value=6> 6
139 <option value=7> 7
140 <option value=8> 8
141 <option value=9> 9
142 <option value=10> 10
143
144 <option value=11> 11
145 <option value=12> 12
146 <option value=13> 13
147 <option value=14> 14
148 <option value=15> 15
149 <option value=16> 16
150 <option value=17> 17
151 <option value=18> 18
152 <option value=19> 19
153
154 <option value=20> 20
155 <option value=21> 21
156 <option value=22> 22
157 <option value=23> 23
158 <option value=24> 24
159 <option value=25> 25
160 <option value=26> 26
161 <option value=27> 27
162 <option value=28> 28
163
164 <option value=29> 29
165 <option value=30> 30
166 <option value=31> 31
167 <option value=32> 32
168 <option value=33> 33
169 <option value=34> 34
170 <option value=35> 35
171 <option value=36> 36
172 <option value=37> 37
173
174 <option value=38> 38
175 <option value=39> 39
176 <option value=40> 40
177 <option value=41> 41
178 <option value=42> 42
179 <option value=43> 43
180 <option value=44> 44
181 <option value=45> 45
182 <option value=46> 46
183
184 <option value=47> 47
185 <option value=48> 48
186 <option value=49> 49
187 <option value=50> 50
188 <option value=51> 51
189 <option value=52> 52
190 <option value=53> 53
191 <option value=54> 54
192 <option value=55> 55
193
194 <option value=56> 56
195 <option value=57> 57
196 <option value=58> 58
197 <option value=59> 59
198 </select><br>
199 </td>
200 <td>Hour(s):<br>
201 <select multiple name=hour1 size=5>
202 <option value=*> Every Hour
203 <option value=*/2> Every Other Hour
204
205 <option value=*/4> Every Four Hours
206 <option value=*/6> Every Six Hours
207 <option value=0> 0 = 12 AM/Midnight
208 <option value=1> 1 = 1 AM
209 <option value=2> 2 = 2 AM
210 <option value=3> 3 = 3 AM
211 <option value=4> 4 = 4 AM
212 <option value=5> 5 = 5 AM
213 <option value=6> 6 = 6 AM
214
215 <option value=7> 7 = 7 AM
216 <option value=8> 8 = 8 AM
217 <option value=9> 9 = 9 AM
218 <option value=10> 10 = 10 AM
219 <option value=11> 11 = 11 AM
220 <option value=12> 12 = 12 PM/Noon
221 <option value=13> 13 = 1 PM
222 <option value=14> 14 = 2 PM
223 <option value=15> 15 = 3 PM
224
225 <option value=16> 16 = 4 PM
226 <option value=17> 17 = 5 PM
227 <option value=18> 18 = 6 PM
228 <option value=19> 19 = 7 PM
229 <option value=20> 20 = 8 PM
230 <option value=21> 21 = 9 PM
231 <option value=22> 22 = 10 PM
232 <option value=23> 23 = 11 PM
233 </select>
234
235 <br><br>Day(s):<br>
236 <select multiple name=day1 size=5>
237 <option value=*> Every Day
238 <option value=1> 1
239 <option value=2> 2
240 <option value=3> 3
241 <option value=4> 4
242 <option value=5> 5
243 <option value=6> 6
244
245 <option value=7> 7
246 <option value=8> 8
247 <option value=9> 9
248 <option value=10> 10
249 <option value=11> 11
250 <option value=12> 12
251 <option value=13> 13
252 <option value=14> 14
253 <option value=15> 15
254
255 <option value=16> 16
256 <option value=17> 17
257 <option value=18> 18
258 <option value=19> 19
259 <option value=20> 20
260 <option value=21> 21
261 <option value=22> 22
262 <option value=23> 23
263 <option value=24> 24
264
265 <option value=25> 25
266 <option value=26> 26
267 <option value=27> 27
268 <option value=28> 28
269 <option value=29> 29
270 <option value=30> 30
271 <option value=31> 31
272 </select><br><br>
273 </td><td>Months(s):<br>
274
275 <select multiple name=month1 size=5>
276 <option value=*> Every Month
277 <option value=1> January
278 <option value=2> February
279 <option value=3> March
280 <option value=4> April
281 <option value=5> May
282 <option value=6> June
283 <option value=7> July
284
285 <option value=8> August
286 <option value=9> September
287 <option value=10> October
288 <option value=11> November
289 <option value=12> December
290 </select>
291 <br><br>Weekday(s):<br>
292 <select multiple name=weekday1 size=5>
293 <option value=*> Every Weekday
294 <option value=0> Sunday
295
296 <option value=1> Monday
297 <option value=2> Tuesday
298 <option value=3> Wednesday
299 <option value=4> Thursday
300 <option value=5> Friday
301 <option value=6> Saturday
302 </select>
303 </td></tr>
304 <tr><td>
305 <label for="validity_period">Validity Period: </label><input type="text" name="validity_period" />
306 </td></tr>
307 </table>
308 <hr>
309 Job dependency stuff here.<br>
310 Set notification email address: <input type="radio" name="notify_addr" value="{$useremail}">{$useremail}</input><input type="radio" name="notify_addr" value="new"><input type="text" name="notify_new"></input>
311 <input type="submit" name="ADD" value="ADD JOB!!!">
312 </form>
313 {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20