From da044bd5e162141872eb82cf3faa1f3db4c0d207 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 7 Sep 2009 13:58:53 +0000 Subject: [PATCH] - Adjusted size of the CSV export - nicer display for the modification of objects SVN:trunk[116] --- pages/UI.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/UI.php b/pages/UI.php index c8708213f..8b835c25a 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -100,12 +100,13 @@ switch($operation) if (strtolower($sFormat) == 'csv') { $oBlock = new DisplayBlock($oFilter, 'csv', false); - $oBlock->Display($oP, 0); + $oBlock->Display($oP, 'csv'); + $oPage->add_ready_script(" $('#csv').css('height', '95%');"); // adjust the size of the block } else { $oBlock = new DisplayBlock($oFilter, 'list', false); - $oBlock->Display($oP, 0); + $oBlock->Display($oP, 1); } } catch(CoreException $e) @@ -151,7 +152,8 @@ switch($operation) if (strtolower($sFormat) == 'csv') { $oBlock = new DisplayBlock($oFilter, 'csv', false); - $oBlock->Display($oP, 0); + $oBlock->Display($oP, 'csv'); + $oP->add_ready_script(" $('#csv').css('height', '95%');"); // adjust the size of the block } else { @@ -237,8 +239,15 @@ switch($operation) if( ($oObj != null) && ($bIsModifiedAllowed) && ($bIsReadAllowed)) { $oP->set_title("iTop - ".$oObj->GetName()." - $sClassLabel modification"); - $oP->add("

".$oObj->GetName()." - $sClassLabel modification

\n"); + $oP->add("
\n"); + $oP->add("

Modification of $sClassLabel: ".$oObj->GetName()."

\n"); + $oP->add("
\n"); + + $oP->add("
\n"); + $oP->add("
\n"); $oObj->DisplayModifyForm($oP); + $oP->add("
\n"); + $oP->add("
\n"); } else {