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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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')) .
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ div.detail.supporting { clear : both;
|
||||
* Item edit formats
|
||||
*/
|
||||
|
||||
.edit table.detail { width : auto;
|
||||
.edit table.detail { width : 80%;
|
||||
float : none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user