Cleaned up and got rid of the word Tenant in most places. The original thought was to minimize confusion in our specific case (since we don't sell POS items) by simply refering to customers as tenants. However, I don't think customers is a very confusing term and so I decided to clear up the inconsistency. I did leave it in a couple places, where the customers in questions are clearly tenants
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@222 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -67,16 +67,6 @@ function customerContactDiv($obj, $values = null, $primary = false) {
|
||||
// BEGIN contact-div
|
||||
'<div id="contact-%{id}-contact-div"' . "\n" .
|
||||
|
||||
/* '<INPUT TYPE="radio" ' . "\n" . */
|
||||
/* ' NAME="data[Customer][primary_contact_entry]"' . "\n" . */
|
||||
/* ' CLASS="contact-primary" ' . "\n" . */
|
||||
/* ' ID="contact-primary-%{id}"' . "\n" . */
|
||||
/* ' VALUE="%{id}"' . "\n" . */
|
||||
/* //($primary ? ' CHECKED' . "\n" : "(\$(#contact-entry-id).val() == 1 ? ' CHECKED' : '')") . */
|
||||
/* ($primary ? ' CHECKED' . "\n" : '' ) . */
|
||||
/* ' />' . "\n" . */
|
||||
/* ' <LABEL FOR="contact-primary-%{id}">Primary Contact</LABEL>' . "\n" . */
|
||||
|
||||
$obj->element
|
||||
('form_table',
|
||||
array('class' => "item contact entry",
|
||||
@@ -148,14 +138,8 @@ function customerContactTypeDiv($obj, $stype, $values = null) {
|
||||
$class = 'detail';
|
||||
$column_class = array('field', 'value');
|
||||
$rows = array(array('First Name', $values['first_name']),
|
||||
//array('Middle Name', $values['middle_name']),
|
||||
array('Last Name', $values['last_name']),
|
||||
array('Company', $values['company_name']),
|
||||
//array('SSN', $values['id_federal']),
|
||||
/* array('ID', ($values['id_local'] */
|
||||
/* . ($values['id_local'] */
|
||||
/* ? " - ".$values['id_local_state'] */
|
||||
/* : ""))), */
|
||||
array('Comment', $values['comment']));
|
||||
}
|
||||
else {
|
||||
@@ -261,7 +245,7 @@ echo $form->input('id') . "\n";
|
||||
echo($this->element
|
||||
('form_table',
|
||||
array('class' => 'item customer detail',
|
||||
'caption' => $this->data ? 'Edit Customer' : 'New Customer',
|
||||
'caption' => isset($this->data['Customer']) ? 'Edit Customer' : 'New Customer',
|
||||
'fields' => array
|
||||
('name' => null,
|
||||
'comment' => null,
|
||||
|
||||
@@ -14,7 +14,7 @@ $rows = array(array('Name', $customer['Customer']['name']),
|
||||
|
||||
echo $this->element('table',
|
||||
array('class' => 'item customer detail',
|
||||
'caption' => 'Tenant Info',
|
||||
'caption' => 'Customer Info',
|
||||
'rows' => $rows,
|
||||
'column_class' => array('field', 'value')));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user