diff --git a/client/infowindow-description.html b/client/infowindow-description.html index 4b8918b..8c1af93 100644 --- a/client/infowindow-description.html +++ b/client/infowindow-description.html @@ -4,5 +4,6 @@
{{address2}}
{{city}}, {{state}} {{postal}}
{{#if phone}}
{{phone}}
{{/if}} +{{#if fax}}
{{fax}}
{{/if}} {{#if web}}
Website
{{/if}} -{{/location}} \ No newline at end of file +{{/location}} diff --git a/client/location-list-description.html b/client/location-list-description.html index c560c97..14993b6 100644 --- a/client/location-list-description.html +++ b/client/location-list-description.html @@ -8,6 +8,7 @@ {{#if address2}}
{{address2}}
{{/if}}
{{city}}, {{state}} {{postal}}
{{#if phone}}
{{phone}}
{{/if}} + {{#if fax}}
{{fax}}
{{/if}} {{#if web}}
Website
{{/if}} {{#if email}}
Email
{{/if}}
@@ -17,4 +18,4 @@
-{{/location}} \ No newline at end of file +{{/location}} diff --git a/src/objects/Location.php b/src/objects/Location.php index fa2e874..068a686 100644 --- a/src/objects/Location.php +++ b/src/objects/Location.php @@ -19,6 +19,7 @@ * @property string $Phone * @property string $Email * @property string $EmailAddress + * @property string $Fax * @property int $Import_ID * * @method ManyManyList Categories @@ -49,6 +50,7 @@ class Location extends DataObject implements PermissionProvider 'Website' => 'Varchar(255)', 'Phone' => 'Varchar(40)', 'Email' => 'Varchar(255)', + 'Fax' => 'Varchar(45)', 'Import_ID' => 'Int', ); diff --git a/templates/Dynamic/Locator/Data/JSON.ss b/templates/Dynamic/Locator/Data/JSON.ss index e3218a2..2c9181b 100644 --- a/templates/Dynamic/Locator/Data/JSON.ss +++ b/templates/Dynamic/Locator/Data/JSON.ss @@ -6,6 +6,7 @@ "Featured": $Featured, "Website": "$Website", "Phone": "$Phone", + "Fax": "$Fax", "Email": "$Email", "Address": "$Address", "Address2": "$Address2", diff --git a/templates/Dynamic/Locator/Data/XML.ss b/templates/Dynamic/Locator/Data/XML.ss index 939a459..741bc36 100644 --- a/templates/Dynamic/Locator/Data/XML.ss +++ b/templates/Dynamic/Locator/Data/XML.ss @@ -1,4 +1,4 @@ - <% loop $Locations %>distance="$Distance"<% end_if %>/> + <% loop $Locations %>distance="$Distance"<% end_if %>/> <% end_loop %> diff --git a/tests/objects/LocationTest.php b/tests/objects/LocationTest.php index a6f1777..6ecd126 100644 --- a/tests/objects/LocationTest.php +++ b/tests/objects/LocationTest.php @@ -42,6 +42,7 @@ public function testFieldLabels() 'Website' => 'Website', 'Phone' => 'Phone', 'Email' => 'Email', + 'Fax' => 'Fax', 'Address' => 'Address', 'City' => 'City', 'State' => 'State',