diff options
author | Preston Cody <codeman@gentoo.org> | 2006-12-11 00:48:50 +0000 |
---|---|---|
committer | Preston Cody <codeman@gentoo.org> | 2006-12-11 00:48:50 +0000 |
commit | c6e93f261343a49962d0b0ec3863e28d00745ca8 (patch) | |
tree | 6f74737084bba261095b905e17cdd53d821dddb8 | |
parent | changing the jobs page to use the methodology of the clients and users page (diff) | |
download | scire-c6e93f261343a49962d0b0ec3863e28d00745ca8.tar.gz scire-c6e93f261343a49962d0b0ec3863e28d00745ca8.tar.bz2 scire-c6e93f261343a49962d0b0ec3863e28d00745ca8.zip |
corresponding template
changing the jobs page to use the methodology of the clients and users page
with definable settings.
svn path=/; revision=171
-rwxr-xr-x | scire/.smarty/templates/jobs.tpl | 120 |
1 files changed, 43 insertions, 77 deletions
diff --git a/scire/.smarty/templates/jobs.tpl b/scire/.smarty/templates/jobs.tpl index 2e51848..0a85517 100755 --- a/scire/.smarty/templates/jobs.tpl +++ b/scire/.smarty/templates/jobs.tpl @@ -1,78 +1,44 @@ -{include file="header.tpl" title="Jobs"}
-<form action="" method="post" name="jobsform">
-<p><strong>Search filter:
- <input type="text" name="searchfield">
-</strong></p>
-<p><strong>lets just yoink bugzilla's listing interface </strong></p>
-<table width="100%" border="1">
- <tr>
- <th scope="col"> </th>
- <th scope="col">Hostname</th>
-{if (!$show_fields)} <!-- Show Client Groups -->
- <th scope="col"><select name="group_filter" id="group">
- <option selected>Group</option>
- {foreach from=$client_groups name=cgroup item=item key=id}
- <option label="{$item}" value="{$id}">{$item}</option>
- {/foreach}
- </select>
-{else}
- <th scope="col">Groups</th>
-{/if}
- <a href="jobs.php?sort=group&by=asec">/\</a> <a href="jobs.php?sort=group&by=desc">\/</a> </th>
- <th scope="col"><select name="priority" id="priority">
- <option selected>Priority</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="...">...</option>
- <option value="10">10</option>
- </select>
- <a href="jobs.php?sort=group&by=asec">/\</a> <a href="jobs.php?sort=group&by=desc">\/</a> </th>
- <th scope="col"><select name="permission" id="permission">
- <option selected>Permission</option>
- <option value="update">Update</option>
- <option value="runscripts">Run Scripts</option>
- <option value="installpackages">Install Packages</option>
- </select>
- <a href="jobs.php?sort=group&by=asec">/\</a> <a href="jobs.php?sort=group&by=desc">\/</a> </th>
- <th scope="col"><select name="status" id="status">
- <option selected>Status</option>
- <option value="done">Done</option>
- <option value="scheduled">Scheduled</option>
- <option value="inprogress">In Progress</option>
- <option value="failed">Failed!</option>
- </select>
- <a href="jobs.php?sort=group&by=asec">/\</a> <a href="jobs.php?sort=group&by=desc">\/</a> </th>
- <th scope="col">Job description </th>
- </tr>
-{section name=j_data loop=$jobs}
- <tr>
- <td><input type="checkbox" name="jobid"></td>
- <td>{$jobs[j_data].hostname}</td>
- <td>{$jobs[j_data].groups}</td>
- <td>{$jobs[j_data].priority}</td>
- <td>{$jobs[j_data].jobtype}</td>
- <td>{$jobs[j_data].status}</td>
- <td>{$jobs[j_data].description}</td>
- </tr>
-{/section}
- <tr>
- <td><input type="checkbox" name="checkbox" value="checkbox"></td>
- <td>mta406</td>
- <td>Mailers</td>
- <td>3</td>
- <td>update</td>
- <td>scheduled</td>
- <td>daily update </td>
- </tr>
- <tr>
- <td><input type="checkbox" name="checkbox" value="checkbox"></td>
- <td>printer1</td>
- <td>PrinterServers</td>
- <td>9</td>
- <td>installpackages</td>
- <td>inprogress</td>
- <td>adding cups </td>
- </tr>
-</table>
-</form>
+{include file="header.tpl" title="Jobs"} +<form action="" method="post" name="jobsform"> +<p> + <strong>Search filter: + <input type="text" name="searchfield"> + </strong> +</p> +{if $jobs} + <table class="box" width="100%" border="1" cellpadding="0" cellspacing="0"> + <tr><td class="boxtitle">Jobs</td></tr> + <tr><td> + + <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0"> + <tr> + {foreach from=$fields item=i key=k} + <th> + <a href="jobs.php{if $f_attr[$i].sortable}?sorton={$i}&sortdir={if $sorton eq $i and $sortdir eq "desc"}asc{else}desc{/if}{/if}">{$f_attr[$i].name}</a> {if $f_attr[$i].sortable}<img src="images/sort_{if $sorton eq $i and $sortdir eq "desc"}desc{else}asc{/if}.png">{/if} + </th> + {/foreach} + + <th>Actions</th> + </tr> + {section name=jobs loop=$jobs} + <tr> + {foreach from=$fields item=item key=key} + {if $item eq "hostname"} + <td><a href="job.php?jobid={$jobs[jobs].jobid}&Action=edit">{$jobs[jobs].hostname}</a></td> + {else} + <td>{$jobs[jobs].$item}</td> + {/if} + {/foreach} + <td> + <a href="job.php?jobid={$jobs[jobs].jobid}&Action=view">View Details</a> + + </td> + </tr> + {/section} + + </td></tr> + + </table> +{/if} +</form> {include file="footer.tpl"} |