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): ?>
|
<?php foreach($customerResults as $custRes): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $custRes['Customer']['name'];?></td>
|
<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>
|
</tr>
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
<td><?php echo $contact['Contact']['first_name'];?></td>
|
<td><?php echo $contact['Contact']['first_name'];?></td>
|
||||||
<td><?php echo $contact['Contact']['last_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($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>
|
</tr>
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
<div class="customers form">
|
<div class="customers form">
|
||||||
|
|
||||||
<?php echo $form->create('Enquiry', array('default'=>false));
|
<?php echo $form->create('Enquiry', array('default'=>false));
|
||||||
echo '<h2>Quick Search';
|
echo '<h2>Search';
|
||||||
echo $html->image('system-search.png');
|
echo $html->image('system-search.png');
|
||||||
echo '</h2>';
|
echo '</h2>';
|
||||||
|
echo "<p>Enter part of an Enquiry Number, Customer Name or Contact Name</p>";
|
||||||
echo $form->input('Enquiry.search_string', array('Label'=>'Search for:', 'id'=>'searchString'));
|
echo $form->input('Enquiry.search_string', array('label'=>'Search', 'id'=>'searchString'));
|
||||||
|
|
||||||
//echo $form->input('Customer.id', array('type'=>'hidden'));
|
//echo $form->input('Customer.id', array('type'=>'hidden'));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue