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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (show annotations) (download) (as text)
Wed Jan 16 02:46:18 2008 UTC (6 years, 3 months ago) by codeman
File MIME type: application/vnd.groove-tool-template
File size: 7005 byte(s)
fixing up the jobs stuff.  halfway there i'd say.

1 {include file="header.tpl" title="Jobs"}
2 <form action="" method="post" name="edit_jobform">
3 {if $Action eq "addgroup"}
4 <table width="100%" border="0" cellspacing="0" cellpadding="5">
5 <tr><td class="boxtitle">Add client to group</td></tr>
6 <tr>
7 <td colspan="2" align="center" valign="top">
8 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
9 <tr>
10 <td class="boxtitle" width="15">Add</td><td class="boxtitle">Group Name</td>
11 </tr>
12 {foreach from=$groups name=ugroup item=item key=id}
13 <tr>
14 <td><input type="checkbox" name="addgroupid[]" value="{$id}"
15 {if isset($ingroups)} {if in_array($id, $ingroups)} checked {/if} {/if}
16 ></td>
17 <td>{$item}</td>
18 </tr>
19 {/foreach}
20 <tr><td>
21 <input type="hidden" name="clientid" value="{$clientid}">
22 <input type="submit" name="addgroup_confirm" value="Save Changes">
23 </td></tr>
24 </table>
25 </td>
26 </tr>
27 </table>
28 {elseif $Action eq "create"}
29 <table width="100%" border="0" cellspacing="0" cellpadding="5">
30 <tr>
31 <td colspan="2" align="center" valign="top">
32 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
33 <tr>
34 <td class="boxtitle">Client</td><td class="boxtitle">Groups</td>
35 </tr>
36 <tr>
37 <td>
38 <table border="0" cellspacing="0" cellpadding="5">
39 <tr>
40 <td><label for="addhostname">*Hostname:</label></td>
41 <td><input type="text" id="addhostname" name="addhostname" /></td>
42 <td><label for="ip">*IP Address:</label></td>
43 <td><input type="text" id="ip" name="ip" /></td>
44
45 </tr>
46 <tr>
47 <td><label for="assetid">Asset ID:</label></td>
48 <td><input type="text" id="assetid" name="assetid" /></td>
49 <td><label for="mac">*MAC:</label></td>
50 <td><input type="text" id="mac" name="mac" /></td>
51
52 </tr>
53 <tr>
54 <td><label for="digest">Digest (DO NOT EDIT):</label></td>
55 <td colspan="3"><input type="text" id="digest" name="digest" size="58"></td>
56 </tr>
57 <tr>
58 <td><label for="gli_profile">GLI Profile:</label></td>
59 <td><select name="gli_profile" size="1">
60 {section name=p loop=$gli_profiles}
61 <option value="{$gli_profiles[p].profileid}">{$gli_profiles[p].profile_name}</option>
62 {/section}
63 </select>
64 </td>
65 <td><label for="status">Status:</label></td>
66 <td><select id="status" name="status" size="1">
67 <option value="active" selected="selected">Active</option>
68 <option value="disabled">Disabled</option>
69 </select>
70 </td>
71 </tr>
72 <tr>
73 <td><label for="osid">OS:</label></td>
74 <td><select name="osid" size="1">
75 {section name=o loop=$oss}
76 <option value="{$oss[o].osid}">{$oss[o].osname}</option>
77 {/section}
78 </select>
79 </td>
80 <td><label for="contact">Contact:</label></td>
81 <td><select name="contact" size="1">
82 {section name=con loop=$users}
83 <option value="{$users[con].userid}">{$users[con].username}</option>
84 {/section}
85 </select></td>
86 </tr>
87 <tr>
88 <td><label for="installtime">Install Time <br>(leave blank for NOW):</label></td>
89 <td colspan="3"><input type="text" id="installtime" name="installtime" size="25"/></td>
90 </tr>
91 </table>
92 <p><input type="submit" name="AddClientSubmit" value="Add Client" /></p>
93 </td>
94 <td>
95 <table>
96 <tr><td>Assign client to the following groups:</td></tr>
97 <tr><td>
98 <select name="groups[]" size="10" multiple="multiple" id="groups">
99 {foreach from=$groups item=ugroup key=id}
100 <option value="{$id}">{$ugroup}</option>
101 {/foreach}
102 </select>
103 </td>
104 </tr></table>
105 </td>
106 </tr>
107 </table>
108 </td>
109 </tr>
110 {elseif $Action eq "edit"}
111 <h1>EDITING</h1>
112 <table width="100%" border="0" cellspacing="0" cellpadding="5">
113 <tr>
114 <td colspan="2" align="center" valign="top">
115 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
116 <tr>
117 <td class="boxtitle">Job</td>
118 </tr>
119 <tr>
120 <td>
121 <table border="0" cellspacing="0" cellpadding="5">
122 <tr>
123 <td><label for="addpriority">*Priority:</label></td>
124 <td><input type="text" id="editpriority" name="editpriority" value="{$job.priority}" /></td>
125 <td><label for="creator">Creator:</label></td>
126 <td><input type="text" id="creator" disabled name="creator" value="{$job.creator}" /></td>
127
128 </tr>
129 <tr>
130 <td><label for="permission:">Permission:</label></td>
131 <td><input type="text" id="permission" name="permission" value="{$job.permission}" /></td>
132
133 </tr>
134 <tr>
135 <td><label for="description">Description:</label></td>
136 <td colspan="3"><textarea id="description" name="description" cols="55" rows="5" > {$job.description}</textarea></td>
137 </tr>
138 <tr>
139 <td><label for="script">Script:</label></td>
140 <td><select id="script" name="script" size="1">
141 {foreach item=sc from=$scripts }
142 {if $sc.scriptid eq $job.script}
143 <option value="{$sc.scriptid}" selected="selected">{$sc.name}</option>
144 {else}
145 <option value="{$sc.scriptid}">{$sc.name}</option>
146 {/if}
147 {/foreach}
148 </select>
149 </td>
150 </tr>
151 <tr>
152 <td><label for="runs_chedule">Run schedule:</label></td>
153 <td><input type="text" id="run_schedule" name="run_schedule" size="25" value="{$job.run_schedule}" /></td>
154 <td><label for="validity_period">Validity Period:<br>(in minutes)</label></td>
155 <td><input type="text" id="validity_period" name="validity_period" size="25" value="{$job.validity_period}" /></td>
156 </tr>
157 </table>
158
159 <fieldset>
160 <legend>Run Schedule</legend>
161 <table>
162 <tr>
163 <td>
164 <p>Minute(s):</p>
165 {html_options name=minutes options=$minutes selected=$selectedMinute size=6}
166 </td>
167 <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
168 <td>
169 <p>Hour(s):</p>
170 {html_options name=hours options=$hours selected=$selectedHour size=6}
171 </td>
172 <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
173 <td>
174 <p>Month(s):</p>
175 {html_options name=months options=$months selected=$selectedMonth size=6}
176 </td>
177 </tr>
178
179 <tr>
180 <td>
181 <p>Day(s):</p>
182 {html_options name=days options=$days selected=$selectedDay size=6}
183 </td>
184 <td></td>
185 <td></td>
186 <td></td>
187 <td>
188 <p>Weekday(s):</p>
189 {html_options name=weekdays options=$weekdays selected=$selectedWeekday size=6}
190 </td>
191 </tr>
192 </table>
193
194 </fieldset>
195
196
197 <input type="hidden" name="jobid" value="{$job.jobid}">
198 <p><input type="submit" name="EditJobSubmit" value="Save Changes" /></form></p>
199 </td>
200 </tr>
201 </table>
202 </td>
203 </tr>
204 </table>
205 {elseif $Action eq "delete"}
206 <h1>DELETING</h1>
207 <b>Are you absolutely SURE you want to delete job {$jobid}:<br>Description:{$job.description}?</b>
208 <input type="hidden" name="jobid" value="{$jobid}">
209 <input type="submit" name="delete_confirm" value="Yes, get rid of it!"><input type="submit" name="delete_cancel" value="No wait!">
210 {/if}
211
212 {include file="footer.tpl"}

  ViewVC Help
Powered by ViewVC 1.1.20