Code

Made utc option checkable.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 13:39:56 +0000 (13:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 13:39:56 +0000 (13:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19851 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl
gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index 65ea81a699a8a78a50ca69b03995abddf295fced..e4693688e852c2889f8f8588a3d2a9a3ea134e7f 100644 (file)
 
             <table>
                 <tr>
-                    <td><LABEL for="kickstartTimeUTC">{t}UTC Time{/t}</LABEL></td>
                     <td>
-                        <input type='text' name="kickstartTimeUTC" id="kickstartTimeUTC" value="{$kickstartTimeUTC}">
+                        <input type='checkbox' name="kickstartTimeUTC" id="kickstartTimeUTC" 
+                        {if $kickstartTimeUTC} checked {/if}>
+                        <LABEL for="kickstartTimeUTC">{t}Use UTC{/t}</LABEL>
                     </td>
                 </tr>
                 <tr>
index 64bdd2029d1835994bc23a7be539d6b23e7e37b8..40cdc4289decd61a703c250836ec05eefe0737a2 100644 (file)
@@ -85,6 +85,7 @@ class InstallRecipe extends plugin
         if(isset($_POST['InstallRecipePosted'])){
             plugin::save_object();
             $this->kickstartRootEnabled = isset($_POST['kickstartRootEnabled']);
+            $this->kickstartTimeUTC = isset($_POST['kickstartTimeUTC']);
 
 
             if(isset($_POST['setKickstartRootPasswordHash'])){
@@ -113,6 +114,7 @@ class InstallRecipe extends plugin
         // 
         if(!$this->kickstartRootEnabled) $this->kickstartRootPasswordHash = "";
         $this->kickstartRootEnabled = ($this->kickstartRootEnabled)?'TRUE':'FALSE';
+        $this->kickstartTimeUTC = ($this->kickstartTimeUTC)?'TRUE':'FALSE';
         
 
         plugin::save();