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:
abijah
2009-07-06 00:42:57 +00:00
parent dc787bd9e7
commit 207808d6d5
3 changed files with 72 additions and 20 deletions

View File

@@ -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">