Code

Updated package config
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 14:12:35 +0000 (14:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 14:12:35 +0000 (14:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17401 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_debconfTemplate.inc
gosa-plugins/fai/admin/fai/faiPackageConfiguration.tpl

index 40bd0137299e39145a064efbfd56623ec52a7181..ef20d1346adf2f91a7c01a1508c1390ef5aadbe7 100644 (file)
@@ -178,7 +178,7 @@ class debconf
   /* Display all possible options in html*/
   function get_dialog()
   {
-    if ($this->loaded_template) {
+    if ($this->loaded_template && count($this->template)) {
       $result= "<table summary=''>";
 
       foreach ($this->template as $post_name => $entry){
@@ -199,9 +199,10 @@ class debconf
           //php_error(E_WARNING, "An unknown type has been specified in the debconf template. Please fix.");
         }
       }
+      $result.="</table>";
 
     
-      $result .= "<input type='hidden' post_name='check_post' value='1'></table>";
+      $result .= "<input type='hidden' post_name='check_post' value='1'>";
       return ($result);
     } else {
       return _("This package has no debconf options.");
index 40490524c5899731f315e4873f040eeef78cf951..79a5390828dd3f48cfa0e4fc863a50619a2d99a4 100644 (file)
@@ -1,12 +1,7 @@
-<h1>
-{image path="images/forward.png" title="{t}Package{/t}"}&nbsp;
-{$headline}</h1>
+<h3>{$headline}</h3>
 {$Config}
 <hr>
-<br>
-<div align="right" style="align:right;">
- <button type='submit' name='SaveObjectConfig'>
- {msgPool type=applyButton}</button>
- <button type='submit' name='CancelObjectConfig'>
- {msgPool type=cancelButton}</button>
-</div>
\ No newline at end of file
+<div class="plugin-actions">
+ <button type='submit' name='SaveObjectConfig'>{msgPool type=applyButton}</button>
+ <button type='submit' name='CancelObjectConfig'>{msgPool type=cancelButton}</button>
+</div>