Add a cancel button to the Matrix Listing form.

This commit is contained in:
Colin Kuskie 2009-02-26 21:04:46 +00:00
parent 20131cf130
commit e25d605ccc
2 changed files with 10 additions and 1 deletions

View file

@ -317,7 +317,15 @@ sub getEditForm {
}
}
$form->submit();
$form->raw(
'<tr><td COLSPAN=2>'.
WebGUI::Form::Button($session, {}).
WebGUI::Form::Button($session, {
-value => $i18n->get('cancel', 'WebGUI'),
-extras => q|onclick="history.go(-1);" class="backwardButton"|
}).
'</td></tr>'
);
return $form;
}