Finished Quick Search, and fixed view bug
This commit is contained in:
parent
3cf7d230ea
commit
0d1601a0c8
|
|
@ -92,7 +92,7 @@
|
|||
<?php foreach($customerResults as $custRes): ?>
|
||||
<tr>
|
||||
<td><?php echo $custRes['Customer']['name'];?></td>
|
||||
<td><?php echo $html->link(__('View', true), array('action'=>'view', $custRes['Customer']['id'])); ?></td>
|
||||
<td><?php echo $html->link(__('View', true), array('controller'=>'customers', 'action'=>'view', $custRes['Customer']['id'])); ?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
<td><?php echo $contact['Contact']['first_name'];?></td>
|
||||
<td><?php echo $contact['Contact']['last_name'];?></td>
|
||||
<td><?php echo $html->link($contact['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $contact['Customer']['id'])); ?></td>
|
||||
<td><?php echo $html->link(__('View', true), array('action'=>'view', $contact['Contact']['id'])); ?></td>
|
||||
<td><?php echo $html->link(__('View', true), array('controller'=>'contacts', 'action'=>'view', $contact['Contact']['id'])); ?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
<div class="customers form">
|
||||
|
||||
<?php echo $form->create('Enquiry', array('default'=>false));
|
||||
echo '<h2>Quick Search';
|
||||
echo '<h2>Search';
|
||||
echo $html->image('system-search.png');
|
||||
echo '</h2>';
|
||||
|
||||
echo $form->input('Enquiry.search_string', array('Label'=>'Search for:', 'id'=>'searchString'));
|
||||
echo "<p>Enter part of an Enquiry Number, Customer Name or Contact Name</p>";
|
||||
echo $form->input('Enquiry.search_string', array('label'=>'Search', 'id'=>'searchString'));
|
||||
|
||||
//echo $form->input('Customer.id', array('type'=>'hidden'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue