Code

Changed language settings from checkbox to radio button
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Apr 2007 09:12:33 +0000 (09:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Apr 2007 09:12:33 +0000 (09:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5992 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep1.inc
setup/setup_step1.tpl

index 33ed3a2c68e0c2b20a7fafa69dccbc7fd92b2bd0..5d6fdbd34a1dde0e7729b8d65ca7b6e767fe7409 100644 (file)
@@ -64,11 +64,13 @@ class setup_step_1 extends setup_step
       $this->lang = $_POST['lang'];
       $this->is_completed = TRUE;
       $_SESSION['lang'] = $this->lang;
-    
+
       if(isset($_POST['force_global_lang'])){
-        $this->force_global_lang = TRUE;
-      }else{
-        $this->force_global_lang = FALSE;
+        if($_POST['force_global_lang'] == 1 ){
+          $this->force_global_lang = TRUE;
+        }else{
+          $this->force_global_lang = FALSE;
+        }
       }
     }
   }
index 030e2ee5a35f0cec53c0d45f5620d7e53f5736bc..11e2ffbd6f3c5b468fd91dd0d91c25866a19da43 100644 (file)
                </select>
        </div>
        
-       <div  class='default' style='float:left;width:160px;'>
-               <br>
-               <br>
+       <div  class='default' style='float:left;width:160px;padding-top:25px;'>
                {t}GOsa language settings{/t}
        </div>
-       <div class='default' style='float:left;'>
-               <br>
+       <div class='default' style='float:left;padding-top:25px;'>
+               <input type='radio' value='0' name='force_global_lang' {if !$force_global_lang} checked {/if}>&nbsp;
+               {t}GOsa will automatically detect the language to use in the GOsa user interface.{/t}
                <br>
-               {t}To force GOsa to use the selected language as global default language, use the option below.{/t}
-               <br> 
-               {t}If you want GOsa to automatically detect the language settings, leave this option clear.{/t} 
-               &nbsp; 
-               <br> 
-               {if $force_global_lang}
-               <input checked type='checkbox' name='force_global_lang'>&nbsp;{t}Force global language{/t} 
-               {else}
-               <input type='checkbox' name='force_global_lang'>&nbsp;{t}Force global language{/t} 
-               {/if}
+               <input type='radio' value='1' name='force_global_lang' {if $force_global_lang} checked {/if}>&nbsp;
+               {t}Force GOsa to use the above selected language as default language.{/t}
        </div>
 </div>