diff options
Diffstat (limited to 'plugins/GeoIp2/templates/_updaterManage.twig')
-rw-r--r-- | plugins/GeoIp2/templates/_updaterManage.twig | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/plugins/GeoIp2/templates/_updaterManage.twig b/plugins/GeoIp2/templates/_updaterManage.twig new file mode 100644 index 0000000000..f110de26da --- /dev/null +++ b/plugins/GeoIp2/templates/_updaterManage.twig @@ -0,0 +1,60 @@ +<div ng-show="locationUpdater.geoipDatabaseInstalled" id="geoipdb-update-info"> + <p> + {{ 'GeoIp2_GeoIPUpdaterInstructions'|translate('<a href="http://www.maxmind.com/?rId=piwik">','</a>','<a rel="noreferrer noopener" href="https://db-ip.com/?refid=mtm">','</a>')|raw }} + <br/><br/> + {% if dbipLiteUrl|default is not empty %}{{ 'GeoIp2_GeoLiteCityLink'|translate('<a rel="noreferrer noopener" href="'~dbipLiteUrl|e('html_attr')~'">',dbipLiteUrl|e('html'),'</a>')|raw }}{% endif %} + + <span ng-show="locationUpdater.geoipDatabaseInstalled"> + <br/><br/>{{ 'GeoIp2_GeoIPUpdaterIntro'|translate }}: + </span> + </p> + + <div piwik-field uicontrol="text" name="geoip-location-db" + ng-model="locationUpdater.locationDbUrl" + introduction="{{ 'GeoIp2_LocationDatabase'|translate|e('html_attr') }}" + data-title="{{ 'Actions_ColumnDownloadURL'|translate|e('html_attr') }}" + value="{{ geoIPLocUrl }}" + inline-help="{{ 'GeoIp2_LocationDatabaseHint'|translate|e('html_attr') }}"> + </div> + + <div piwik-field uicontrol="text" name="geoip-isp-db" + ng-model="locationUpdater.ispDbUrl" + introduction="{{ 'GeoIp2_ISPDatabase'|translate|e('html_attr') }}" + data-title="{{ 'Actions_ColumnDownloadURL'|translate|e('html_attr') }}" + value="{{ geoIPIspUrl }}"> + </div> + + <div id="locationProviderUpdatePeriodInlineHelp" class="inline-help-node"> + {% if lastTimeUpdaterRun is defined and lastTimeUpdaterRun is not empty %} + {{ 'GeoIp2_UpdaterWasLastRun'|translate(lastTimeUpdaterRun)|raw }} + {% else %} + {{ 'GeoIp2_UpdaterHasNotBeenRun'|translate }} + {% endif %} + <br/><br/> + <div id="geoip-updater-next-run-time"> + {% include "@GeoIp2/_updaterNextRunTime.twig" %} + </div> + </div> + + <div piwik-field uicontrol="radio" name="geoip-update-period" + ng-model="locationUpdater.updatePeriod" + introduction="{{ 'GeoIp2_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> |