diff options
| author | lsces <lester@lsces.co.uk> | 2015-01-22 10:32:21 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2015-01-22 10:32:21 +0000 |
| commit | f334aa6583331ed6ec658b1624eb887ba374400a (patch) | |
| tree | 54bed872da7a90bd6071373486cde16c9f377adf | |
| parent | 9d9214afcb25746d0139cd37aaf9ebc32292b2c4 (diff) | |
| download | contact-f334aa6583331ed6ec658b1624eb887ba374400a.tar.gz contact-f334aa6583331ed6ec658b1624eb887ba374400a.tar.bz2 contact-f334aa6583331ed6ec658b1624eb887ba374400a.zip | |
Change list style
| -rw-r--r-- | templates/list.tpl | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/templates/list.tpl b/templates/list.tpl index a6828ad..8bf772b 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -10,7 +10,7 @@ <div class="body"> {include file="bitpackage:contact/display_list_header.tpl"} - + <div class="table-responsive"> <table class="table data clear"> <caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption> <tr> @@ -32,46 +32,50 @@ <tr class="{cycle values='odd,even'}"> <td class="alignright"> <a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}"> - {$listcontacts[content].xkey} - - {$listcontacts[content].title} - </a>& + {$listcontacts[content].xkey} + </a> + </td> + <td class="alignleft"> + <a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}"> + {$listcontacts[content].title} + </a> </td> - {if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitUser->hasPermission( 'p_liberty_view_all_status' )} <td>{$item.content_status_name}</td> - {/if} - <td>{$item.display_link}</td> - <td>{assign var=content_type_guid value=$item.content_type_guid}{$gLibertySystem->getContentTypeName($content_type_guid)}</td> - {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )} - <td>{if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}{/if}</td> - <td>{if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}{/if}</td> - {/if} - <td>{if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation} {/if}</td> - {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )} - <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') } - {$listcontacts[content].house}, {/if} - {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') } - {$listcontacts[content].add1}, {/if} - {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') } - {$listcontacts[content].add2}, {/if} - {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') } - {$listcontacts[content].add3}, {/if} - {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') } - {$listcontacts[content].add4}, {/if}</td> + {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )} + <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') } + {$listcontacts[content].house}, {/if} + {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') } + {$listcontacts[content].add1}, {/if} + {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') } + {$listcontacts[content].add2}, {/if} + {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') } + {$listcontacts[content].add3}, {/if} + {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') } + {$listcontacts[content].add4}, {/if}</td> + {/if} <td>{if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') } {$listcontacts[content].town}{/if}</td> - {/if} - <td>{if isset($listcontacts[content].grideast) } - <{$listcontacts[content].grideast|escape} , {$listcontacts[content].gridnorth|escape}> {/if} + <td>{if isset($listcontacts[content].grideast) } + <{$listcontacts[content].grideast|escape} , {$listcontacts[content].gridnorth|escape}> {/if} {if $listcontacts[content].y_coordinate and $listcontacts[content].x_coordinate } Exact Cords:<{$listcontacts[content].y_coordinate|escape} , {$listcontacts[content].x_coordinate|escape}> {/if} - </td> - <td>{$listcontacts[content].postcode}</td> + </td> + <td>{$listcontacts[content].postcode}</td> + </tr> + <tr class="second"> + <td>{$item.display_link}</td> + <td>{if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation} {/if}</td> + <td>{assign var=content_type_guid value=$item.content_type_guid}{$gLibertySystem->getContentTypeName($content_type_guid)}</td> <td> {tr}Refs{/tr}: {$listcontacts[content].refs|default:0} {tr}Tasks{/tr}: {$listcontacts[content].tasks|default:0} {tr}Addresses{/tr}: {$listcontacts[content].addresses|default:0} </td> + {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )} + <td>{if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}{/if}</td> + <td>{if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}{/if}</td> + {/if} </tr> {sectionelse} <tr class="norecords"> @@ -79,6 +83,7 @@ </tr> {/section} </table> + </div> {pagination} </div><!-- end .body --> </div><!-- end .contacts --> |
