Changed layout to enlarge the detail table on the edit page. Changed edit action to redirect to the view page.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@221 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -120,6 +120,7 @@ function customerContactDiv($obj, $values = null, $primary = false) {
|
||||
function customerContactTypeDiv($obj, $stype, $values = null) {
|
||||
|
||||
$element = 'form_table';
|
||||
$class = $stype;
|
||||
|
||||
if ($stype === 'existing') {
|
||||
$fields = array
|
||||
@@ -144,6 +145,7 @@ function customerContactTypeDiv($obj, $stype, $values = null) {
|
||||
}
|
||||
elseif ($stype === 'show') {
|
||||
$element = 'table';
|
||||
$class = 'detail';
|
||||
$column_class = array('field', 'value');
|
||||
$rows = array(array('First Name', $values['first_name']),
|
||||
//array('Middle Name', $values['middle_name']),
|
||||
@@ -170,7 +172,7 @@ function customerContactTypeDiv($obj, $stype, $values = null) {
|
||||
|
||||
$obj->element
|
||||
($element,
|
||||
array('class' => "item contact {$stype}",
|
||||
array('class' => "item contact {$class}",
|
||||
'field_prefix' => 'Contact.%{id}')
|
||||
+ compact('rows', 'fields', 'column_class')) .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user