diff options
author | Preston Cody <codeman@gentoo.org> | 2007-07-22 22:02:53 +0000 |
---|---|---|
committer | Preston Cody <codeman@gentoo.org> | 2007-07-22 22:02:53 +0000 |
commit | 91281e0b408191bd6e48f23a97f39e486fc9a972 (patch) | |
tree | 1f94d22829acb762ac8a021ffe8d7622188bc2ec /scire | |
parent | in DB.php: (diff) | |
download | scire-91281e0b408191bd6e48f23a97f39e486fc9a972.tar.gz scire-91281e0b408191bd6e48f23a97f39e486fc9a972.tar.bz2 scire-91281e0b408191bd6e48f23a97f39e486fc9a972.zip |
small changes. for script, use the id and name of scripts, now passed in.
previously the id wasn't there.
for client.tpl, use the statuses gathered.
svn path=/; revision=239
Diffstat (limited to 'scire')
-rwxr-xr-x | scire/.smarty/templates/client.tpl | 10 | ||||
-rw-r--r-- | scire/.smarty/templates/script.tpl | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/scire/.smarty/templates/client.tpl b/scire/.smarty/templates/client.tpl index 58f78e6..39d4bd1 100755 --- a/scire/.smarty/templates/client.tpl +++ b/scire/.smarty/templates/client.tpl @@ -64,8 +64,9 @@ </td> <td><label for="status">Status:</label></td> <td><select id="status" name="status" size="1"> - <option value="active" selected="selected">Active</option> - <option value="disabled">Disabled</option> + {section name=s loop=$client_statuses} + <option value="{$client_statuses[s].statusid}">{$client_statuses[s].statusname}</option> + {/section} </select> </td> </tr> @@ -148,8 +149,9 @@ </td> <td><label for="status">Status:</label></td> <td><select id="status" name="status" size="1"> - <option value="active" selected="selected">Active</option> - <option value="disabled">Disabled</option> + {section name=s loop=$client_statuses} + <option value="{$client_statuses[s].statusid}" {if $client_statuses[s].statusid eq $client.status} selected {/if}>{$client_statuses[s].statusname}</option> + {/section} </select> </td> </tr> diff --git a/scire/.smarty/templates/script.tpl b/scire/.smarty/templates/script.tpl index 9802abc..c4f19ec 100644 --- a/scire/.smarty/templates/script.tpl +++ b/scire/.smarty/templates/script.tpl @@ -36,7 +36,7 @@ <td> <select name="permission" size="7"> {foreach from=$perms item=perm key=id} - <option value="{$perm}" {if $perm eq $permission}selected{/if}>{$perm}</option> + <option value="{$perm.id}" {if $perm.id eq $permission}selected{/if}>{$perm.name}</option> {/foreach} </select> </td> |