Limit 60 chars in enquiry reg view
This commit is contained in:
parent
53eda4cd9c
commit
718ad07f97
|
|
@ -88,7 +88,7 @@ foreach ($enquiries as $enquiry):
|
||||||
<?php echo $html->link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
|
<?php echo $html->link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td class="customername">
|
||||||
<?php echo $html->link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
|
<?php echo $html->link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="contactname">
|
<td class="contactname">
|
||||||
|
|
@ -111,7 +111,7 @@ foreach ($enquiries as $enquiry):
|
||||||
<td class="comments">
|
<td class="comments">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$displayedComment = substr($enquiry['Enquiry']['comments'], 0, 150);
|
$displayedComment = substr($enquiry['Enquiry']['comments'], 0, 60);
|
||||||
echo $displayedComment;
|
echo $displayedComment;
|
||||||
if(strlen($enquiry['Enquiry']['comments']) > strlen($displayedComment) ) {
|
if(strlen($enquiry['Enquiry']['comments']) > strlen($displayedComment) ) {
|
||||||
echo '.... '.$html->link('view all', array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id']));
|
echo '.... '.$html->link('view all', array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id']));
|
||||||
|
|
|
||||||
|
|
@ -380,6 +380,7 @@ table.mer tr td {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table.mer tr.altrow td {
|
table.mer tr.altrow td {
|
||||||
background: #f4f4f4;
|
background: #f4f4f4;
|
||||||
}
|
}
|
||||||
|
|
@ -421,7 +422,7 @@ table.mer tr td.principlename {
|
||||||
}
|
}
|
||||||
|
|
||||||
table.mer tr td.comments {
|
table.mer tr td.comments {
|
||||||
font-size: x-small;
|
font-size: xx-small;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -438,6 +439,10 @@ table.mer tr td.contactname {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
table.mer tr td.customername {
|
||||||
|
padding: 0;
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
table.mer tr td.viewedit {
|
table.mer tr td.viewedit {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue