diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 04:13:13 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 04:13:13 +0000 |
| commit | 735c56e4cc8b428019139072d997c42dad313c3f (patch) | |
| tree | 6aad7dc4a086505fd65d962a050722430ef8a5cd /templates | |
| parent | 8523b9662e0b6d869442ff9ecbe747fab45bb1b2 (diff) | |
| download | contact-735c56e4cc8b428019139072d997c42dad313c3f.tar.gz contact-735c56e4cc8b428019139072d997c42dad313c3f.tar.bz2 contact-735c56e4cc8b428019139072d997c42dad313c3f.zip | |
Move address xref records to their own list and display them below the property address
Still need to add a switch to disable navigation links where not needed - or hide them in a pop-up
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/display_address.tpl | 56 | ||||
| -rw-r--r-- | templates/display_contact.tpl | 4 |
2 files changed, 31 insertions, 29 deletions
diff --git a/templates/display_address.tpl b/templates/display_address.tpl index 16bf1b4..c07b742 100644 --- a/templates/display_address.tpl +++ b/templates/display_address.tpl @@ -1,45 +1,45 @@ <div class="row"> {formlabel label="$header" for="lpi"} {forminput} - {if isset($pageInfo.sao) && ($pageInfo.sao <> '') } - {$pageInfo.sao}, {/if} - {if isset($pageInfo.pao) && ($pageInfo.pao <> '') } - {$pageInfo.pao},<br />{/if} - {if isset($pageInfo.number) && ($pageInfo.number <> '') } - {$pageInfo.number},<br />{/if} - {if isset($pageInfo.house) && ($pageInfo.house <> '') } - {$pageInfo.house},<br />{/if} - {if isset($pageInfo.add1) && ($pageInfo.add1 <> '') } - {$pageInfo.add1},<br />{/if} - {if isset($pageInfo.add2) && ($pageInfo.add2 <> '') } - {$pageInfo.add2}, {/if} - {if isset($pageInfo.add3) && ($pageInfo.add3 <> '') } - {$pageInfo.add3},<br />{/if} - {if isset($pageInfo.add4) && ($pageInfo.add4 <> '') } - {$pageInfo.add4}, {/if} - {if isset($pageInfo.town) && ($pageInfo.town <> '') } - {$pageInfo.town}, {/if} - {if isset($pageInfo.county) && ($pageInfo.county <> '') } - {$pageInfo.county}, {/if} - {$pageInfo.postcode} + {if isset($address.sao) && ($address.sao <> '') } + {$address.sao}, {/if} + {if isset($address.pao) && ($address.pao <> '') } + {$address.pao},<br />{/if} + {if isset($address.number) && ($address.number <> '') } + {$address.number},<br />{/if} + {if isset($address.house) && ($address.house <> '') } + {$address.house},<br />{/if} + {if isset($address.add1) && ($address.add1 <> '') } + {$address.add1},<br />{/if} + {if isset($address.add2) && ($address.add2 <> '') } + {$address.add2}, {/if} + {if isset($address.add3) && ($address.add3 <> '') } + {$address.add3},<br />{/if} + {if isset($address.add4) && ($address.add4 <> '') } + {$address.add4}, {/if} + {if isset($address.town) && ($address.town <> '') } + {$address.town}, {/if} + {if isset($address.county) && ($address.county <> '') } + {$address.county}, {/if} + {$address.postcode} {/forminput} </div> - {if isset($pageInfo.x_coordinate) && ($pageInfo.x_coordinate <> '') } + {if $locate == 1 && isset($address.x_coordinate) && ($address.x_coordinate <> '') } <div class="row"> {formlabel label="Visual Centre Coordinates" for="street_start_x"} {forminput} - Lat: {$pageInfo.x_coordinate|escape} Lon: {$pageInfo.y_coordinate|escape} - <<a href="http://www.openstreetmap.org/index.html?mlat={$pageInfo.x_coordinate}&mlon={$pageInfo.y_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}"> + Lat: {$address.x_coordinate|escape} Lon: {$address.y_coordinate|escape} + <<a href="http://www.openstreetmap.org/index.html?mlat={$address.x_coordinate}&mlon={$address.y_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}"> OpenStreetMap - </a>> <<a href="http://www.bing.com/maps/?cp={$pageInfo.x_coordinate}~{$pageInfo.y_coordinate}&lvl=16&style=r&q={$pageInfo.postcode}#" title="{$pageInfo.title}"> + </a>> <<a href="http://www.bing.com/maps/?cp={$address.x_coordinate}~{$address.y_coordinate}&lvl=16&style=r&q={$address.postcode}#" title="{$address.title}"> Multimap - </a>> <<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$pageInfo.postcode}&ll={$pageInfo.x_coordinate},{$pageInfo.y_coordinate}&z=16" title="{$pageInfo.title}"> + </a>> <<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$address.postcode}&ll={$address.x_coordinate},{$address.y_coordinate}&z=16" title="{$address.title}"> Google </a>><br /> - Navigate to <<a href="http://openrouteservice.org/index.php?start=-1.822164,52.073197&end={$pageInfo.y_coordinate},{$pageInfo.x_coordinate}&pref=Fastest&lang=en&unit=MI" title="{$propertyInfo.title}"> + Navigate to <<a href="http://openrouteservice.org/index.php?start=-1.822164,52.073197&end={$address.y_coordinate},{$address.x_coordinate}&pref=Fastest&lang=en&unit=MI" title="{$propertyInfo.title}"> OpenRouteService </a>> - {$pageInfo.rpa|escape} + {$address.rpa|escape} {/forminput} </div> {/if} diff --git a/templates/display_contact.tpl b/templates/display_contact.tpl index bdc153b..2b70cfc 100644 --- a/templates/display_contact.tpl +++ b/templates/display_contact.tpl @@ -40,7 +40,9 @@ {/forminput} </div> {/if} - {include file="bitpackage:contact/display_address.tpl" header="Contact Address"} + {section name=address loop=$pageInfo.address} + {include file="bitpackage:contact/display_address.tpl" header=$pageInfo.address[address].source_title address=$pageInfo.address[address] locate=1} + {/section} <div class="row"> {formlabel label="General Notes" for="data"} |
