<?php
/**
* ChronoForms 8
* Copyright (c) 2023 ChronoEngine.com, All rights reserved.
* Author: (ChronoEngine.com Team)
* license:     GNU General Public License version 2 or later; see LICENSE.txt
* Visit http://www.ChronoEngine.com for regular updates and information.
**/
defined('_JEXEC') or die('Restricted access');
?>
<div class="equal fields">
    <?php new FormField(name: "elements[$id][field_id]", type:"text", label: "Address field ID", value: "", hint:"The id of the field used to load the address information from Google."); ?>
    <?php new FormField(name: "elements[$id][formatted_field_id]", type:"text", label: "Formatted result address field ID", value: "", hint:"The id of the field to receive the full formatted address result."); ?>
</div>
<div class="equal fields">
    <?php new FormField(name: "elements[$id][address][street_number]", type:"text", label: "Street number field ID", value: "", hint:"The id of the street number result."); ?>
    <?php new FormField(name: "elements[$id][address][route]", type:"text", label: "Street address field ID", value: "", hint:"The id of the street address result."); ?>
</div>

<div class="equal fields">
    <?php new FormField(name: "elements[$id][address][locality]", type:"text", label: "City name field ID", value: "", hint:"The id of the city name result."); ?>
    <?php new FormField(name: "elements[$id][address][administrative_area_level_1]", type:"text", label: "State name field ID", value: "", hint:"The id of the state name result."); ?>
    <?php new FormField(name: "elements[$id][address][administrative_area_level_2]", type:"text", label: "Sub state name field ID", value: "", hint:"The id of the sub state name result."); ?>
</div>

<div class="equal fields">
    <?php new FormField(name: "elements[$id][address][postal_code]", type:"text", label: "Zip code field ID", value: "", hint:"The id of the zip code result."); ?>
    <?php new FormField(name: "elements[$id][address][country]", type:"text", label: "Country name field ID", value: "", hint:"The id of the country name result."); ?>
</div>

<div class="equal fields">
    <?php new FormField(name: "elements[$id][geolocate]", type:"select", label: "GeoLocation", options: ["" => "No", "1" => "Yes"], hint:"If enabled then the user location data will be used, user will get a prompt asking for acceptance."); ?>
</div>

<?php
$behaviors = ["icon", "color", "size", "class"];
$listBehaviors($id, $behaviors);
?>