Code

Updated workstation template
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 12:14:39 +0000 (12:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 12:14:39 +0000 (12:14 +0000)
-Translate inherited in FAIdebianMirror

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12923 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl

index 2d9c5bf17de02a3ace6a7b671f4266440f7b428e..6432bfe12846ecdb856e3670608fae0884978431 100644 (file)
        {render acl=$FAIdebianMirrorACL}
                                                <select name="FAIdebianMirror" {$FAIdebianMirrorACL} onchange='document.mainform.submit()'>
                                                        {foreach from=$FAIservers item=val key=key}
-                                                               <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{$key}</option>
+                                                               {if $key == "inherited" || $key == "auto"} 
+                                                                       <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{t}{$key}{/t}</option>
+                                                               {else}
+                                                                       <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{$key}</option>
+                                                               {/if}
                                                        {/foreach}
                                                </select>
        {/render}
        {render acl=$FAIdebianMirrorACL}
                                                <select name="FAIdebianMirror" {$FAIdebianMirrorACL} onchange='document.mainform.submit()'>
                                                        {foreach from=$FAIservers item=val key=key}
-                                                               <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{$key}</option>
+                                                               {if $key == "inherited" || $key == "auto"} 
+                                                                       <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{t}{$key}{/t}</option>
+                                                               {else}
+                                                                       <option value="{$key}" {if $FAIdebianMirror == $key} selected {/if}>{$key}</option>
+                                                               {/if}
                                                        {/foreach}
                                                </select>
        {/render}