<div ng-controller="SitesManagerController" class="SitesManager">
<div ng-show="hasSuperUserAccess" piwik-content-block content-title="{{ 'SitesManager_GlobalWebsitesSettings' | translate }}">

    <a name="globalSettings" id="globalSettings"></a>

    <div id="excludedIpsGlobalHelp" class="inline-help-node">
        <div ng-include="'plugins/SitesManager/templates/help/excluded-ip-help.html'"></div>
    </div>

    <div id="excludedQueryParametersGlobalHelp" class="inline-help-node">
        <div ng-include="'plugins/SitesManager/templates/help/excluded-query-parameters-help.html'"></div>
    </div>

    <div id="excludedUserAgentsGlobalHelp" class="inline-help-node">
        <div ng-include="'plugins/SitesManager/templates/help/excluded-user-agents-help.html'"></div>
    </div>

    <div id="timezoneHelp" class="inline-help-node">
        <div ng-include="'plugins/SitesManager/templates/help/timezone-help.html'"></div>
    </div>

    <div id="keepURLFragmentsHelp" class="inline-help-node">
        <div ng-bind-html="'SitesManager_KeepURLFragmentsHelp'|translate:'<em>#</em>':'<em>example.org/index.html#first_section</em>':'<em>example.org/index.html</em>'"></div>
        <div>{{ 'SitesManager_KeepURLFragmentsHelp2'|translate }}</div>
    </div>

    <div piwik-field uicontrol="textarea" name="excludedIpsGlobal"
         var-type="array"
         ng-model="globalSettings.excludedIpsGlobal"
         data-title="{{ 'SitesManager_ListOfIpsToBeExcludedOnAllWebsites'|translate }}"
         introduction="{{ 'SitesManager_GlobalListExcludedIps'|translate }}"
         inline-help="#excludedIpsGlobalHelp">
    </div>

    <div piwik-field uicontrol="textarea" name="excludedQueryParametersGlobal"
         var-type="array"
         ng-model="globalSettings.excludedQueryParametersGlobal"
         data-title="{{ 'SitesManager_ListOfQueryParametersToBeExcludedOnAllWebsites'|translate }}"
         introduction="{{ 'SitesManager_GlobalListExcludedQueryParameters'|translate }}"
         inline-help="#excludedQueryParametersGlobalHelp">
    </div>

    <div piwik-field uicontrol="textarea" name="excludedUserAgentsGlobal"
         var-type="array"
         ng-model="globalSettings.excludedUserAgentsGlobal"
         data-title="{{ 'SitesManager_GlobalListExcludedUserAgents_Desc'|translate }}"
         introduction="{{ 'SitesManager_GlobalListExcludedUserAgents'|translate }}"
         inline-help="#excludedUserAgentsGlobalHelp">
    </div>

    <div piwik-field uicontrol="checkbox" name="keepURLFragmentsGlobal"
         ng-model="globalSettings.keepURLFragmentsGlobal"
         data-title="{{ 'SitesManager_KeepURLFragmentsLong'|translate }}"
         introduction="{{ 'SitesManager_KeepURLFragments'|translate }}"
         inline-help="#keepURLFragmentsHelp">
    </div>

    <h3>{{ 'SitesManager_TrackingSiteSearch'|translate }}</h3>

    <p>{{ 'SitesManager_SiteSearchUse' | translate }}</p>
    <div class="alert alert-info">
        {{ 'SitesManager_SearchParametersNote'|translate }} {{ 'SitesManager_SearchParametersNote2'|translate }}
    </div>

    <div piwik-field uicontrol="text" name="searchKeywordParametersGlobal" var-type="array"
         ng-model="globalSettings.searchKeywordParametersGlobal"
         data-title="{{ 'SitesManager_SearchKeywordLabel'|translate }}"
         inline-help="{{ 'SitesManager_SearchKeywordParametersDesc' | translate }}">
    </div>

    <div piwik-field uicontrol="text" name="searchCategoryParametersGlobal" var-type="array"
         ng-model="globalSettings.searchCategoryParametersGlobal"
         data-title="{{ 'SitesManager_SearchCategoryLabel'|translate }}"
         inline-help="{{ 'Goals_Optional'|translate }} {{ 'SitesManager_SearchCategoryDesc'|translate }} {{ 'SitesManager_SearchCategoryParametersDesc'|translate }}">
    </div>

    <div piwik-field uicontrol="select" name="defaultTimezone"
         ng-model="globalSettings.defaultTimezone"
         options="timezones"
         data-title="{{ 'SitesManager_SelectDefaultTimezone'|translate }}"
         introduction="{{ 'SitesManager_DefaultTimezoneForNewWebsites'|translate }}"
         inline-help="#timezoneHelp">
    </div>

    <div piwik-field uicontrol="select" name="defaultCurrency"
         ng-model="globalSettings.defaultCurrency"
         options="currencies"
         data-title="{{ 'SitesManager_SelectDefaultCurrency'|translate }}"
         introduction="{{ 'SitesManager_DefaultCurrencyForNewWebsites'|translate }}"
         inline-help="{{ 'SitesManager_CurrencySymbolWillBeUsedForGoals' | translate }}">
    </div>

    <div piwik-save-button onconfirm="saveGlobalSettings()"></div>

</div></div>
</div>
