/[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 352 - (hide annotations) (download) (as text)
Wed Jan 16 02:46:18 2008 UTC (9 years, 11 months ago) by codeman
File MIME type: application/vnd.groove-tool-template
File size: 9771 byte(s)
fixing up the jobs stuff.  halfway there i'd say.

1 codeman 156 {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 codeman 233 <td colspan="2">Or just type in the ID of the script: <input type="text" name="scriptID" ></td>
40 codeman 156 </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 codeman 245 </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 codeman 156 </table>
133     <hr>
134     Job Description: <br><textarea name="description" rows="3" cols="40"></textarea><br>
135 codeman 338 <hr>
136     Recurring stuff here. <b>You need to select all of them to get it to save the schedule!</b><br>
137 codeman 175 <table>
138     <tr><td>Minute(s):<br>
139     <select multiple name=minute1 size=10>
140 codeman 338 <!-- <option value=*> Every Minute
141     <option value=*/2> Every Other Minute -->
142 codeman 175 <option value=*/5> Every Five Minutes
143     <option value=*/10> Every Ten Minutes
144     <option value=*/15> Every Fifteen Minutes
145     <option value=0> 0
146     <option value=1> 1
147    
148     <option value=2> 2
149     <option value=3> 3
150     <option value=4> 4
151     <option value=5> 5
152     <option value=6> 6
153     <option value=7> 7
154     <option value=8> 8
155     <option value=9> 9
156     <option value=10> 10
157    
158     <option value=11> 11
159     <option value=12> 12
160     <option value=13> 13
161     <option value=14> 14
162     <option value=15> 15
163     <option value=16> 16
164     <option value=17> 17
165     <option value=18> 18
166     <option value=19> 19
167    
168     <option value=20> 20
169     <option value=21> 21
170     <option value=22> 22
171     <option value=23> 23
172     <option value=24> 24
173     <option value=25> 25
174     <option value=26> 26
175     <option value=27> 27
176     <option value=28> 28
177    
178     <option value=29> 29
179     <option value=30> 30
180     <option value=31> 31
181     <option value=32> 32
182     <option value=33> 33
183     <option value=34> 34
184     <option value=35> 35
185     <option value=36> 36
186     <option value=37> 37
187    
188     <option value=38> 38
189     <option value=39> 39
190     <option value=40> 40
191     <option value=41> 41
192     <option value=42> 42
193     <option value=43> 43
194     <option value=44> 44
195     <option value=45> 45
196     <option value=46> 46
197    
198     <option value=47> 47
199     <option value=48> 48
200     <option value=49> 49
201     <option value=50> 50
202     <option value=51> 51
203     <option value=52> 52
204     <option value=53> 53
205     <option value=54> 54
206     <option value=55> 55
207    
208     <option value=56> 56
209     <option value=57> 57
210     <option value=58> 58
211     <option value=59> 59
212     </select><br>
213     </td>
214     <td>Hour(s):<br>
215     <select multiple name=hour1 size=5>
216     <option value=*> Every Hour
217     <option value=*/2> Every Other Hour
218    
219     <option value=*/4> Every Four Hours
220     <option value=*/6> Every Six Hours
221     <option value=0> 0 = 12 AM/Midnight
222     <option value=1> 1 = 1 AM
223     <option value=2> 2 = 2 AM
224     <option value=3> 3 = 3 AM
225     <option value=4> 4 = 4 AM
226     <option value=5> 5 = 5 AM
227     <option value=6> 6 = 6 AM
228    
229     <option value=7> 7 = 7 AM
230     <option value=8> 8 = 8 AM
231     <option value=9> 9 = 9 AM
232     <option value=10> 10 = 10 AM
233     <option value=11> 11 = 11 AM
234     <option value=12> 12 = 12 PM/Noon
235     <option value=13> 13 = 1 PM
236     <option value=14> 14 = 2 PM
237     <option value=15> 15 = 3 PM
238    
239     <option value=16> 16 = 4 PM
240     <option value=17> 17 = 5 PM
241     <option value=18> 18 = 6 PM
242     <option value=19> 19 = 7 PM
243     <option value=20> 20 = 8 PM
244     <option value=21> 21 = 9 PM
245     <option value=22> 22 = 10 PM
246     <option value=23> 23 = 11 PM
247     </select>
248    
249     <br><br>Day(s):<br>
250     <select multiple name=day1 size=5>
251     <option value=*> Every Day
252     <option value=1> 1
253     <option value=2> 2
254     <option value=3> 3
255     <option value=4> 4
256     <option value=5> 5
257     <option value=6> 6
258    
259     <option value=7> 7
260     <option value=8> 8
261     <option value=9> 9
262     <option value=10> 10
263     <option value=11> 11
264     <option value=12> 12
265     <option value=13> 13
266     <option value=14> 14
267     <option value=15> 15
268    
269     <option value=16> 16
270     <option value=17> 17
271     <option value=18> 18
272     <option value=19> 19
273     <option value=20> 20
274     <option value=21> 21
275     <option value=22> 22
276     <option value=23> 23
277     <option value=24> 24
278    
279     <option value=25> 25
280     <option value=26> 26
281     <option value=27> 27
282     <option value=28> 28
283     <option value=29> 29
284     <option value=30> 30
285     <option value=31> 31
286     </select><br><br>
287     </td><td>Months(s):<br>
288    
289     <select multiple name=month1 size=5>
290     <option value=*> Every Month
291     <option value=1> January
292     <option value=2> February
293     <option value=3> March
294     <option value=4> April
295     <option value=5> May
296     <option value=6> June
297     <option value=7> July
298    
299     <option value=8> August
300     <option value=9> September
301     <option value=10> October
302     <option value=11> November
303     <option value=12> December
304     </select>
305     <br><br>Weekday(s):<br>
306     <select multiple name=weekday1 size=5>
307     <option value=*> Every Weekday
308     <option value=0> Sunday
309    
310     <option value=1> Monday
311     <option value=2> Tuesday
312     <option value=3> Wednesday
313     <option value=4> Thursday
314     <option value=5> Friday
315     <option value=6> Saturday
316     </select>
317     </td></tr>
318 codeman 233 <tr><td>
319 codeman 338 <hr>
320 codeman 348 <label for="validity_period">Validity Period (in minutes?): </label><input type="text" name="validity_period" />
321 codeman 233 </td></tr>
322 codeman 338
323     <tr><td>
324 codeman 351 <script language="JavaScript" src="calendar/calendar3.js"></script><!-- Date only with year scrolling -->
325     <label for="deploy_time">Start time: <input type="Text" name="deploy_time" value="">
326     <a href="javascript:cal1.popup();"><img src="calendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></label>
327 codeman 338 </td>
328     <td>
329 codeman 351 <label for="expiration_time">End time: <input type="Text" name="expiration_time" value="">
330     <a href="javascript:cal2.popup();"><img src="calendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></label>
331     <script language="JavaScript">
332     <!-- // create calendar object(s) just after form tag closed
333     // specify form element as the only parameter (document.forms['formname'].elements['inputname']);
334     // note: you can have as many calendar objects as you need for your application
335     var cal1 = new calendar3(document.forms['add_jobform'].elements['deploy_time']);
336     cal1.year_scroll = false;
337     cal1.time_comp = true;
338     var cal2 = new calendar3(document.forms['add_jobform'].elements['expiration_time']);
339     cal2.year_scroll = false;
340     cal2.time_comp = true;
341     //-->
342     </script>
343 codeman 338 </td>
344     </tr>
345 codeman 175 </table>
346     <hr>
347 codeman 338 Job dependency stuff here.<B>CODE ME</B><br>
348 codeman 352 <!-- 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> -->
349 codeman 156 <input type="submit" name="ADD" value="ADD JOB!!!">
350     </form>
351     {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20