From 7dddfc9610fd1372ce99ca3214df17e764f8f6ad Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 24 Nov 2005 11:52:51 +0000 Subject: [PATCH] Fixed layout git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2042 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 8 ++--- include/class_debconfTemplate.inc | 30 +++++++++---------- .../fai/class_faiPackageConfiguration.inc | 3 +- plugins/admin/fai/faiPackageConfiguration.tpl | 8 ++--- 4 files changed, 22 insertions(+), 27 deletions(-) diff --git a/TODO b/TODO index f1645f115..c7b7c8154 100644 --- a/TODO +++ b/TODO @@ -6,14 +6,8 @@ Things to fix before 2.4: * Check dialog to add aplications (group dialog) -* First name/Last name instead of Name/Given name - -* Evaluate patches for certificate generation - * Divlists are broken in firefox 1.5rc1 -* FAI Hooks are only assignable once per hook bundle - check this - Target for 2.5: =============== @@ -21,6 +15,8 @@ Target for 2.5: * Asterisk : Create entry like this #309,1,PickupChan(SIP/rainer), to allow others to pickup the phone by pressing # and number of the phone. +* Evaluate patches for certificate generation + * Bug submitter * Fix translation mode diff --git a/include/class_debconfTemplate.inc b/include/class_debconfTemplate.inc index 7b586b28c..c9c4aa8ed 100644 --- a/include/class_debconfTemplate.inc +++ b/include/class_debconfTemplate.inc @@ -223,7 +223,7 @@ class debconf function get_dialog() { if ($this->has_template){ - $result= ""; + $result= "
  
"; foreach ($this->template as $post_name => $entry){ @@ -259,17 +259,18 @@ class debconf $post_name= $data['post_name']; $result=" - - - "; @@ -357,9 +358,9 @@ class debconf - - @@ -412,9 +413,6 @@ class debconf } -# Example: -#$debconf= new debconf("libnss-ldap", "de"); -#echo $debconf->get_dialog(); // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/fai/class_faiPackageConfiguration.inc b/plugins/admin/fai/class_faiPackageConfiguration.inc index bebd82867..b28155693 100644 --- a/plugins/admin/fai/class_faiPackageConfiguration.inc +++ b/plugins/admin/fai/class_faiPackageConfiguration.inc @@ -38,7 +38,8 @@ class faiPackageConfiguration extends plugin /* Fill templating stuff */ $smarty = get_smarty(); - $display = "$this->obj"; + $display = ""; + $smarty->assign("headline", sprintf(_("Debconf information for package '%s'"), $this->obj)); $this->Debconf_handle -> PostCheck(); diff --git a/plugins/admin/fai/faiPackageConfiguration.tpl b/plugins/admin/fai/faiPackageConfiguration.tpl index 2745c1d0b..179ed29ec 100644 --- a/plugins/admin/fai/faiPackageConfiguration.tpl +++ b/plugins/admin/fai/faiPackageConfiguration.tpl @@ -1,8 +1,8 @@ -

 {t}Generic{/t}

- +

 {$headline}

+

 

{$Config}
- - + +
-- 2.30.2
- ".$data['Topic']."
".$data['Description']." +
+

".$data['Topic']."

".$data['Description']."
"; + "; foreach(array("true","false") as $value){ if($data['Default'] == $value){ - $result.="".$value.""; + $result.=""._($value); }else{ - $result.="".$value.""; + $result.=""._($value); } + $result.="
"; } $result.= " @@ -296,9 +297,9 @@ class debconf $result="
- ".$data['Topic']."
".$data['Description']." +

".$data['Topic']."

".$data['Description']."
+ "; @@ -331,7 +332,7 @@ class debconf { $result= ""; $result.= "
"; - $result.= "".$data['Topic']."
".$data['Description']."
 

"; + $result.= "

".$data['Topic']."

".$data['Description']."
 

"; $result.= $data['Description']; $result.= "
- ".$data['Topic']."
".$data['Description']." +

".$data['Topic']."

".$data['Description']."
+ "; foreach($choices as $value){ @@ -385,9 +386,9 @@ class debconf $result= "
- ".$data['Topic']." 
".$data['Description']." +

".$data['Topic']."

".$data['Description']."
+