/[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 248 - (show annotations) (download) (as text)
Sun Dec 23 04:50:01 2007 UTC (9 years, 10 months ago) by agaffney
File MIME type: application/vnd.groove-tool-template
File size: 8426 byte(s)
move everything to new trunk directory
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 <table>
122 {if $dyn_tags}
123 <tr>
124 <th>Dynamic Tag</th><th>Value</th>
125 </tr>
126 {foreach from=$dyn_tags item=tag key=tagnum}
127 <tr>
128 <td>Tag: <b>{$tag}</b></td><td><input type="text" name="tag_{$tag}" value="{$tag_values[$tag]}" /></td>
129 </tr>
130 {/foreach}
131 {/if}
132 </table>
133 <hr>
134 Job Description: <br><textarea name="description" rows="3" cols="40"></textarea><br>
135 Recurring stuff here.<br>
136 <table>
137 <tr><td>Minute(s):<br>
138 <select multiple name=minute1 size=10>
139 <option value=*> Every Minute
140 <option value=*/2> Every Other Minute
141 <option value=*/5> Every Five Minutes
142 <option value=*/10> Every Ten Minutes
143 <option value=*/15> Every Fifteen Minutes
144 <option value=0> 0
145 <option value=1> 1
146
147 <option value=2> 2
148 <option value=3> 3
149 <option value=4> 4
150 <option value=5> 5
151 <option value=6> 6
152 <option value=7> 7
153 <option value=8> 8
154 <option value=9> 9
155 <option value=10> 10
156
157 <option value=11> 11
158 <option value=12> 12
159 <option value=13> 13
160 <option value=14> 14
161 <option value=15> 15
162 <option value=16> 16
163 <option value=17> 17
164 <option value=18> 18
165 <option value=19> 19
166
167 <option value=20> 20
168 <option value=21> 21
169 <option value=22> 22
170 <option value=23> 23
171 <option value=24> 24
172 <option value=25> 25
173 <option value=26> 26
174 <option value=27> 27
175 <option value=28> 28
176
177 <option value=29> 29
178 <option value=30> 30
179 <option value=31> 31
180 <option value=32> 32
181 <option value=33> 33
182 <option value=34> 34
183 <option value=35> 35
184 <option value=36> 36
185 <option value=37> 37
186
187 <option value=38> 38
188 <option value=39> 39
189 <option value=40> 40
190 <option value=41> 41
191 <option value=42> 42
192 <option value=43> 43
193 <option value=44> 44
194 <option value=45> 45
195 <option value=46> 46
196
197 <option value=47> 47
198 <option value=48> 48
199 <option value=49> 49
200 <option value=50> 50
201 <option value=51> 51
202 <option value=52> 52
203 <option value=53> 53
204 <option value=54> 54
205 <option value=55> 55
206
207 <option value=56> 56
208 <option value=57> 57
209 <option value=58> 58
210 <option value=59> 59
211 </select><br>
212 </td>
213 <td>Hour(s):<br>
214 <select multiple name=hour1 size=5>
215 <option value=*> Every Hour
216 <option value=*/2> Every Other Hour
217
218 <option value=*/4> Every Four Hours
219 <option value=*/6> Every Six Hours
220 <option value=0> 0 = 12 AM/Midnight
221 <option value=1> 1 = 1 AM
222 <option value=2> 2 = 2 AM
223 <option value=3> 3 = 3 AM
224 <option value=4> 4 = 4 AM
225 <option value=5> 5 = 5 AM
226 <option value=6> 6 = 6 AM
227
228 <option value=7> 7 = 7 AM
229 <option value=8> 8 = 8 AM
230 <option value=9> 9 = 9 AM
231 <option value=10> 10 = 10 AM
232 <option value=11> 11 = 11 AM
233 <option value=12> 12 = 12 PM/Noon
234 <option value=13> 13 = 1 PM
235 <option value=14> 14 = 2 PM
236 <option value=15> 15 = 3 PM
237
238 <option value=16> 16 = 4 PM
239 <option value=17> 17 = 5 PM
240 <option value=18> 18 = 6 PM
241 <option value=19> 19 = 7 PM
242 <option value=20> 20 = 8 PM
243 <option value=21> 21 = 9 PM
244 <option value=22> 22 = 10 PM
245 <option value=23> 23 = 11 PM
246 </select>
247
248 <br><br>Day(s):<br>
249 <select multiple name=day1 size=5>
250 <option value=*> Every Day
251 <option value=1> 1
252 <option value=2> 2
253 <option value=3> 3
254 <option value=4> 4
255 <option value=5> 5
256 <option value=6> 6
257
258 <option value=7> 7
259 <option value=8> 8
260 <option value=9> 9
261 <option value=10> 10
262 <option value=11> 11
263 <option value=12> 12
264 <option value=13> 13
265 <option value=14> 14
266 <option value=15> 15
267
268 <option value=16> 16
269 <option value=17> 17
270 <option value=18> 18
271 <option value=19> 19
272 <option value=20> 20
273 <option value=21> 21
274 <option value=22> 22
275 <option value=23> 23
276 <option value=24> 24
277
278 <option value=25> 25
279 <option value=26> 26
280 <option value=27> 27
281 <option value=28> 28
282 <option value=29> 29
283 <option value=30> 30
284 <option value=31> 31
285 </select><br><br>
286 </td><td>Months(s):<br>
287
288 <select multiple name=month1 size=5>
289 <option value=*> Every Month
290 <option value=1> January
291 <option value=2> February
292 <option value=3> March
293 <option value=4> April
294 <option value=5> May
295 <option value=6> June
296 <option value=7> July
297
298 <option value=8> August
299 <option value=9> September
300 <option value=10> October
301 <option value=11> November
302 <option value=12> December
303 </select>
304 <br><br>Weekday(s):<br>
305 <select multiple name=weekday1 size=5>
306 <option value=*> Every Weekday
307 <option value=0> Sunday
308
309 <option value=1> Monday
310 <option value=2> Tuesday
311 <option value=3> Wednesday
312 <option value=4> Thursday
313 <option value=5> Friday
314 <option value=6> Saturday
315 </select>
316 </td></tr>
317 <tr><td>
318 <label for="validity_period">Validity Period: </label><input type="text" name="validity_period" />
319 </td></tr>
320 </table>
321 <hr>
322 Job dependency stuff here.<br>
323 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>
324 <input type="submit" name="ADD" value="ADD JOB!!!">
325 </form>
326 {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20