Code

Better repository selection :)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Oct 2005 12:04:04 +0000 (12:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Oct 2005 12:04:04 +0000 (12:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1547 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackageNew.inc
plugins/admin/fai/faiPackage.tpl
plugins/admin/fai/faiPackageNew.tpl

index bc45bf43bab13e8b145d74a1060e8bae869f8498..1d162737066919855643b165267a703e79656b06 100644 (file)
@@ -166,6 +166,10 @@ class faiPackageNew extends plugin
       $smarty->assign("SectionACL"," disabled ");
     }
 
+
+    $smarty->assign("DisSection",!empty($this->FAIdebianSection));
+    $smarty->assign("DisRelease",!empty($this->FAIdebianRelease));
+
     $smarty->assign("mirrors" ,$availableServer);
     $smarty->assign("mirror"  ,$this->FAIdebianMirror);
     $smarty->assign("releases",$this->releases);
index 021724cffc7cf5a3a2e595f1b74b6978aa5b5194..022e16f867eefcf32c26e8a3b14eff26d73f768c 100644 (file)
@@ -72,7 +72,7 @@
                        <br>
                        <input type="submit" name="Addpkg" value="+" {$OptionsACL}>
                        <input type="submit" name="Delpkg" value="-"  {$OptionsACL}>
-                       <input type="submit" name="Conpkg" value="Configure"  {$OptionsACL}>
+                       <input type="submit" name="Conpkg" value="Configure"  {$OptionsACL} disabled>
                </td>
        </tr>
 </table>
index f4d007908e70a8aceb63416cc9662f06ef034c05..a3a4381b5e576798dac71cccc67e0f5437642e08 100644 (file)
@@ -31,6 +31,7 @@
                </select>
        </td>
 </tr>
+{if $DisRelease neq false}
 <tr>
        <td height="30">
         <h2>{t}Sections for this release{/t} : </h2> 
@@ -40,6 +41,8 @@
                {$sections} 
        </td>
 </tr>
+{/if}
+{if $DisSection neq false}
 <tr>
        <td height="30">
                <h2><LABEL for="mirror">{t}Matching mirrors{/t}</LABEL> : </h2>
                <select name="FAIdebianMirrorS" title="{t}mirror{/t}" {$MirrorACL}>
                        {html_options options=$mirrors selected=$mirror}
                </select>
-               <input type="submit" value="{t}set{/t}" name="SetRepository">
        </td>
 </tr>
+{/if}
 </table>
+               <input type="submit" value="{t}set{/t}" name="SetRepository">
 <p class="seperator">&nbsp;
 </p>