<div ng-show="locationUpdater.geoipDatabaseInstalled" id="geoipdb-update-info">
    <p>
		{{ 'UserCountry_GeoIPUpdaterInstructions'|translate('<a href="http://www.maxmind.com/?rId=piwik" rel="noreferrer noopener">','</a>','<a rel="noreferrer noopener" href="https://db-ip.com/?refid=mtm">','</a>')|raw }}
        <br/><br/>
		{% if dbipLiteUrl|default is not empty %}{{ 'UserCountry_GeoLiteCityLink'|translate('<a rel="noreferrer noopener" href="'~dbipLiteUrl|e('html_attr')~'">',dbipLiteUrl|e('html'),'</a>')|raw }}<br/><br/>{% endif %}
		{{ 'UserCountry_MaxMindLinkExplanation'|translate('<a href="https://matomo.org/faq/how-to/how-do-i-get-the-geolocation-download-url-for-the-free-maxmind-db/" rel="noreferrer noopener" target="_blank">', '</a>')|raw }}

		<span ng-show="locationUpdater.geoipDatabaseInstalled">
			<br/><br/>{{ 'UserCountry_GeoIPUpdaterIntro'|translate }}:
		</span>
	</p>

	<div piwik-field uicontrol="text" name="geoip-location-db"
		 ng-model="locationUpdater.locationDbUrl"
		 introduction="{{ 'UserCountry_LocationDatabase'|translate|e('html_attr') }}"
		 data-title="{{ 'Actions_ColumnDownloadURL'|translate|e('html_attr') }}"
		 value="{{ geoIPLocUrl }}"
		 inline-help="{{ 'UserCountry_LocationDatabaseHint'|translate|e('html_attr') }}">
	</div>

	<div piwik-field uicontrol="text" name="geoip-isp-db"
		 ng-model="locationUpdater.ispDbUrl"
		 introduction="{{ 'UserCountry_ISPDatabase'|translate|e('html_attr') }}"
		 data-title="{{ 'Actions_ColumnDownloadURL'|translate|e('html_attr') }}"
		 value="{{ geoIPIspUrl }}">
	</div>

	{% if geoIPOrgUrl is defined %}
	<div piwik-field uicontrol="text" name="geoip-org-db"
		 ng-model="locationUpdater.orgDbUrl"
		 introduction="{{ 'UserCountry_OrgDatabase'|translate|e('html_attr') }}"
		 data-title="{{ 'Actions_ColumnDownloadURL'|translate|e('html_attr') }}"
		 value="{{ geoIPOrgUrl }}">
	</div>
	{% endif %}

	<div id="locationProviderUpdatePeriodInlineHelp" class="inline-help-node">
		{% if lastTimeUpdaterRun is defined and lastTimeUpdaterRun is not empty %}
			{{ 'UserCountry_UpdaterWasLastRun'|translate(lastTimeUpdaterRun)|raw }}
		{% else %}
			{{ 'UserCountry_UpdaterHasNotBeenRun'|translate }}
		{% endif %}
		<br/><br/>
		<div id="geoip-updater-next-run-time">
			{% include "@UserCountry/_updaterNextRunTime.twig" %}
		</div>
	</div>

	<div piwik-field uicontrol="radio" name="geoip-update-period"
		 ng-model="locationUpdater.updatePeriod"
		 introduction="{{ 'UserCountry_DownloadNewDatabasesEvery'|translate|e('html_attr') }}"
		 value="{{ geoIPUpdatePeriod }}"
		 options="{{ updatePeriodOptions|json_encode }}"
		 inline-help="#locationProviderUpdatePeriodInlineHelp">
	</div>

	<input type="button"
		   class="btn"
		   ng-click="locationUpdater.saveGeoIpLinks()"
		   ng-value="locationUpdater.buttonUpdateSaveText"/>

	<div>
		<div id="done-updating-updater"></div>
		<div id="geoipdb-update-info-error"></div>
		<div piwik-progressbar
			 progress="locationUpdater.progressUpdateDownload"
			 label="locationUpdater.progressUpdateLabel"
			 ng-show="locationUpdater.isUpdatingGeoIpDatabase"></div>
	</div>
</div>
