/[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 156 - (hide annotations) (download) (as text)
Sun Oct 8 20:36:43 2006 UTC (11 years, 3 months ago) by codeman
Original Path: scire/.smarty/templates/add_job.tpl
File MIME type: application/vnd.groove-tool-template
File size: 4181 byte(s)
a LOT of fixes and updates to a lot of pages.
also adding the add_job page. not fully functional yet.

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     <td colspan="2">Or just type in the ID of the script: <input type="text" name="script" ></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     Job dependency stuff here.<br>
124     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>
125     <input type="submit" name="ADD" value="ADD JOB!!!">
126     </form>
127     {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20