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/site@221 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-06 03:09:54 +00:00
parent eab49091ae
commit 826874b2a5
3 changed files with 6 additions and 4 deletions

View File

@@ -335,8 +335,8 @@ class CustomersController extends AppController {
}
// Now that the work is done, let the user view the updated customer
//$this->redirect(array('action'=>'view', $this->data['Customer']['id']));
$this->autoRender = false;
$this->redirect(array('action'=>'view', $this->data['Customer']['id']));
//$this->autoRender = false;
return;
}

View File

@@ -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')) .

View File

@@ -84,7 +84,7 @@ div.detail.supporting { clear : both;
* Item edit formats
*/
.edit table.detail { width : auto;
.edit table.detail { width : 80%;
float : none;
}