From 914061abe119b7307aa451d540a7040092db0381 Mon Sep 17 00:00:00 2001 From: agrabs Date: Wed, 30 Apr 2008 18:58:25 +0000 Subject: [PATCH] a small cosmetic change. the save/cancel buttons now are displayed in a single row --- mod/feedback/edit_item.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mod/feedback/edit_item.php b/mod/feedback/edit_item.php index c05899b922..4c10b9bdb8 100644 --- a/mod/feedback/edit_item.php +++ b/mod/feedback/edit_item.php @@ -161,18 +161,20 @@ get_string('position', 'feedback').' ', array_slice(range(0,$i_formselect_last),1,$i_formselect_last,true)); $i_formselect->setValue($i_formselect_value); + + $buttonarray = array(); if(!empty($item->id)){ $i_form->addElement('hidden', 'updateitem', '1'); - $i_form->addElement('submit', 'update_item', get_string('update_item', 'feedback')); - // echo ''; - // echo ''; + // $i_form->addElement('submit', 'update_item', get_string('update_item', 'feedback')); + $buttonarray[] = &$i_form->createElement('submit', 'update_item', get_string('update_item', 'feedback')); }else{ $i_form->addElement('hidden', 'saveitem', '1'); - $i_form->addElement('submit', 'save_item', get_string('save_item', 'feedback')); - // echo ''; - // echo ''; + // $i_form->addElement('submit', 'save_item', get_string('save_item', 'feedback')); + $buttonarray[] = &$i_form->createElement('submit', 'save_item', get_string('save_item', 'feedback')); } - $i_form->addElement('cancel'); + // $i_form->addElement('cancel'); + $buttonarray[] = &$i_form->createElement('cancel'); + $i_form->addGroup($buttonarray, 'buttonar', '', array(' '), false); $item_form->display(); /* -- 2.39.5