21 lines
970 B
PHP
21 lines
970 B
PHP
|
|
<legend><?php __('Add A Contact');?></legend> <? echo $ajax->link('Remove this', array('controller' => 'contacts', 'action' => 'remove_another', $increment), array('update' => 'contacts'.$increment));
|
|
|
|
?>
|
|
<?
|
|
|
|
echo $form->input("Contact.$increment.first_name");
|
|
echo $form->input("Contact.$increment.last_name");
|
|
echo $form->input("Contact.$increment.email");
|
|
echo $form->input("Contact.$increment.phone");
|
|
echo $form->input("Contact.$increment.mobile");
|
|
echo $form->input("Contact.$increment.fax");
|
|
echo $form->input("Contact.$increment.contact_category_id", array('options' => $contact_categories, 'label' => 'Contact Department'));
|
|
echo $form->input("Contact.$increment.notes");
|
|
|
|
$next = $increment;
|
|
$next++;
|
|
echo $ajax->link('Add another Contact to this New Customer', array('controller' => 'contacts', 'action' => 'add_another',$next), array('update'=>'contacts'.$next));
|
|
?>
|
|
<div id="contacts<?php echo $next; ?>"></div>
|