Contact direct phone and phone extension complete
This commit is contained in:
parent
f613ead20c
commit
0a069330d0
|
|
@ -8,6 +8,8 @@
|
|||
echo $form->input('last_name');
|
||||
echo $form->input('email');
|
||||
echo $form->input('phone');
|
||||
echo $form->input('phone_extension');
|
||||
echo $form->input('direct_phone');
|
||||
echo $form->input('mobile');
|
||||
echo $form->input('fax');
|
||||
echo $form->input('contact_category_id');
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
echo $form->input("Contact.$increment.last_name");
|
||||
echo $form->input("Contact.$increment.email");
|
||||
echo $form->input("Contact.$increment.phone");
|
||||
echo $form->input("Contact.$increment.phone_extension");
|
||||
echo $form->input("Contact.$increment.direct_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'));
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
echo $form->input("Contact.last_name");
|
||||
echo $form->input("Contact.email");
|
||||
echo $form->input("Contact.phone");
|
||||
echo $form->input('Contact.phone_extension');
|
||||
echo $form->input('Contact.direct_phone');
|
||||
echo $form->input("Contact.mobile");
|
||||
echo $form->input("Contact.fax");
|
||||
echo $form->input("Contact.contact_category_id", array('options' => $contact_categories, 'label' => 'Contact Department'));
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
echo $form->input('first_name', array('label' => 'First Name', 'title'=>'The first name of this Contact'));
|
||||
echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
|
||||
echo $form->input('email');
|
||||
echo $form->input('phone');
|
||||
echo $form->input('phone', array('label' => 'Phone Number', 'title'=>'Phone Number'));
|
||||
echo $form->input('phone_extension', array('label' => 'Phone Extension', 'title'=>'If the Contact is on an extension enter it here. No Need enter EXT or similar - numbers only'));
|
||||
echo $form->input('direct_phone', array('label' => 'Direct Phone', 'title'=>'Direct Phone number for this Contact'));
|
||||
echo $form->input('mobile');
|
||||
echo $form->input('fax');
|
||||
echo $form->input('contact_category_id', array('label'=>'Contact Department', 'empty' => 'Please Choose a Department'));
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
echo $form->input('last_name');
|
||||
echo $form->input('email');
|
||||
echo $form->input('phone');
|
||||
echo $form->input('phone_extension');
|
||||
echo $form->input('direct_phone');
|
||||
echo $form->input('mobile');
|
||||
echo $form->input('fax');
|
||||
echo $form->input('contact_category_id', array('label' => 'Department', 'empty' => 'Please Choose a Department'));
|
||||
|
|
|
|||
|
|
@ -27,6 +27,16 @@
|
|||
<?php echo $contact['Contact']['phone']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phone Extension'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $contact['Contact']['phone_extension']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Direct Phone'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $contact['Contact']['direct_phone']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fax'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $contact['Contact']['fax']; ?>
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
<th><?php __('Name'); ?></th>
|
||||
<th><?php __('Email Address'); ?></th>
|
||||
<th><?php __('Phone Number'); ?></th>
|
||||
<th><?php __('Direct Phone'); ?></th>
|
||||
<th><?php __('Fax Number'); ?></th>
|
||||
<th><?php __('Department'); ?></th>
|
||||
<th><?php __('Notes'); ?></th>
|
||||
|
|
@ -75,7 +76,10 @@
|
|||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $contact['Contact']['first_name'].' '.$contact['Contact']['last_name'];?></td>
|
||||
<td><?php echo $html->link($contact['Contact']['email'], 'mailto:'.$contact['Contact']['email']);?></td>
|
||||
<td><?php echo $contact['Contact']['phone'];?></td>
|
||||
<td><?php echo $contact['Contact']['phone'];
|
||||
if($contact['Contact']['phone_extension']) { echo ' ext:'.$contact['Contact']['phone_extension']; }
|
||||
?></td>
|
||||
<td><?php echo $contact['Contact']['direct_phone'];?></td>
|
||||
<td><?php echo $contact['Contact']['fax'];?></td>
|
||||
<td><?php echo $contact['ContactCategory']['name']; ?></td>
|
||||
<td><?php echo $contact['Contact']['notes'];?></td>
|
||||
|
|
|
|||
|
|
@ -106,7 +106,14 @@ foreach ($enquiries as $enquiry):
|
|||
<?php echo $html->link($enquiry['Contact']['email'], 'mailto:'.$enquiry['Contact']['email'].'?subject='.$enquiry['Enquiry']['title'].'&bcc=carpis@cmctechnologies.com.au'); ?>
|
||||
</td>
|
||||
<td class="contactemail">
|
||||
<?php echo $enquiry['Contact']['phone']; ?>
|
||||
<?php if($enquiry['Contact']['direct_phone']) { echo $enquiry['Contact']['direct_phone']; }
|
||||
else {
|
||||
echo $enquiry['Contact']['phone'];
|
||||
if($enquiry['Contact']['phone_extension']) {
|
||||
echo ' ext:'.$enquiry['Contact']['phone_extension'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="status"><div id="statusupdate_<?php echo $i;?>"><?php echo $enquiry['Status']['name']; ?></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue