<xf:if is="$xf.options.nfCalendarGoogleApi && $xf.options.nfCalendarLocationComplete">
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key={$xf.options.nfCalendarGoogleApi}&libraries=places"></script>
<xf:js prod="nf/calendar/geocomplete.js" dev="nf/calendar/geocomplete.js" addon="NF/Calendar" />
</xf:if>
<xf:textboxrow name="location"
data-xf-init="{{ $xf.options.nfCalendarGoogleApi && $xf.options.nfCalendarLocationComplete ? 'auto-location' : '' }}"
data-types="geocode,establishment"
maxlength="{{ max_length($event, 'event_location' )}}"
label="{{ phrase('nf_calendar_where') }}"
placeholder="{{ phrase('nf_calendar_enter_a_location...') }}" />