Added ability to add a new contact, which also fixes the glaring omission of saving changes to contact details on the edit page (previously we were only saving contact methods, not any contact details.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@218 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -342,13 +342,13 @@ function contactMethodTypeDiv($obj, $type, $stype, $values = null) {
|
||||
|
||||
echo '<div class="contact edit">' . "\n";
|
||||
|
||||
echo $form->create('Contact') . "\n";
|
||||
echo $form->create('Contact', array('action' => 'edit')) . "\n";
|
||||
echo $form->input('id') . "\n";
|
||||
|
||||
echo($this->element
|
||||
('form_table',
|
||||
array('class' => 'item contact detail',
|
||||
'caption' => 'Edit Contact',
|
||||
'caption' => $this->data ? 'Edit Contact' : 'New Contact',
|
||||
'fields' => array
|
||||
('first_name' => null,
|
||||
'last_name' => null,
|
||||
@@ -364,6 +364,8 @@ echo($this->element
|
||||
//'' => null,
|
||||
//'' => '',
|
||||
))) . "\n");
|
||||
|
||||
echo $form->submit('Update') . "\n";
|
||||
?>
|
||||
|
||||
<div CLASS="dynamic-set">
|
||||
|
||||
Reference in New Issue
Block a user