File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/greylist/views/trustedHosts.ptt
Back
<div class="row"> <div class="col-xs-12"> <h3>[% locale.maketext('Trusted Hosts') %]</h3> <p class="description"> [% locale.maketext('[asis,Greylisting] will never defer emails from entries on the Trusted Hosts list.') %] </p> </div> </div> <div class="row"> <div class="col-md-5"> <div class="row batch-subform" id="trustedHostsBatchSubform"> <div class="col-md-12"> <form class="layout-medium" novalidate ng-submit="addToTrustedHosts()" ng-hide="ip_being_edited"> <div class="form-group"> <label id="lblTrustedHostBatchAdd" for="batchAdd"> [% locale.maketext('New Trusted Hosts') %] </label> <span class="glyphicon glyphicon-info-sign" role="tooltip" tabindex="0" aria-describedby="lblTrustedHostBatchAdd" uib-tooltip-html="ipAddressExampleText" tooltip-trigger="keyup click" tooltip-placement="top"></span> <textarea id="batchAdd" class="form-control" rows="10" ng-model="newTrustedHosts" placeholder="[% locale.maketext('Enter one or more [asis,IP] addresses or ranges, one entry per line.') %]"></textarea> </div> <div class="form-group"> <label for="newTrustedHostComment">[% locale.maketext("Comment") %]</label> <textarea ng-model="newTrustedHostComment" id="newTrustedHostComment" rows="3" maxlength="255" placeholder="[% locale.maketext('Enter comment (255 characters maximum).') %]" class="form-control"></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-primary btn-loading add_button"> <span ng-show="addingBatchToTrustedHosts" class="glyphicon glyphicon-refresh fa-spin"></span> <span ng-hide="addingBatchToTrustedHosts" class="btn-label">[% locale.maketext('Add') %]</span> </button> </div> </form> <form class="layout-medium" novalidate id="trustedHostsCommentEditor" ng-show="ip_being_edited" ng-submit="updateTrustedHostComment()"> <div class="form-group"> <label for="currentTrustedHost">[% locale.maketext("Host [asis,IP] Address") %]</label> <input id="currentTrustedHost" type="text" ng-model="current_ip" class="form-control" disabled> </div> <div class="form-group"> <label for="currentTrustedHostComment">[% locale.maketext("Comment") %]</label> <textarea ng-model="current_comment" id="currentTrustedHostComment" rows="3" maxlength="255" placeholder="[% locale.maketext('Enter comment (255 characters maximum).') %]" class="form-control"></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-primary btn-loading add_button"> <span ng-show="updating_comment" class="glyphicon glyphicon-refresh fa-spin"></span> <span ng-hide="updating_comment" class="btn-label">[% locale.maketext('Update') %]</span> </button> <button type="button" ng-hide="updating_comment" class="btn btn-link" ng-click="cancelTrustedHostEditing()">[% locale.maketext('Cancel') %]</button> </div> </form> </div> </div> </div> <div class="col-md-7"> <div class="row search-page-container"> <div class="col-xs-12 col-sm-offset-6 col-sm-6 col-md-offset-5 col-md-7 col-lg-offset-6 col-lg-6"> <div class="pagination-container"> <page-size id="topPageSize" allowed-sizes="meta.pageSizes" total-items="meta.totalRows" ng-model="meta.pageSize" show-all="true" ng-change="changePageSize()"> </page-size> <uib-pagination id="topPager" ng-change="fetchPage(page)" ng-model="meta.pageNumber" max-size="meta.maxPages" items-per-page="meta.pageSize" total-items="meta.totalRows" direction-links="true" boundary-links="true" rotate="false" first-text="<<" last-text=">>" previous-text="<" next-text=">" class="pagination-small"> </uib-pagination> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <p class="text-right">[% locale.maketext("Displaying [_1] to [_2] out of [_3] records", "{{ meta.pageNumberStart }}", "{{ meta.pageNumberEnd }}", "{{ meta.totalRows }}") %]</p> </div> </div> <table id="trustedHostsTable" class="table table-striped"> <thead> <tr> <th class="mass_edit_checkbox"> <input type="checkbox" id="selectAllCheckbox" name="selectAllCheckbox" title="[% locale.maketext('Click to select all IP addresses.') %]" ng-disabled="!trustedHosts.length || ip_being_edited" ng-model="selectAllCheckbox" ng-click="toggleSelection(selectAllCheckbox)"> </th> <th class="ip_column"> <span toggle-sort id="sortIp" onsort="sortList" sort-meta="meta" sort-field="hostIp"> [% locale.maketext('Host [asis,IP] Address') %] </span> </th> <th class="comment_column"> <span toggle-sort id="sortComments" onsort="sortList" sort-meta="meta" sort-field="comment"> [% locale.maketext('Comment') %] </span> </th> <th class="actions_header">[% locale.maketext('Actions') %]</th> <th class="gear_column"> <span class="dropdown" uib-dropdown> <a href class="dropdown-toggle" uib-dropdown-toggle ng-class="{disabled: ip_being_edited}"> <span class="fas fa-cog fa-lg"></span> </a> <ul class="dropdown-menu[%- IF locale.get_html_dir_attr() != 'rtl' -%] dropdown-menu-right[% END %] gear_menu" uib-dropdown-menu> <li ng-class="{disabled: !trustedHosts.length || ip_being_edited}"> <a href ng-click="selectAll();">[% locale.maketext('Select All') %]</a> </li> <li ng-class="{disabled: !trustedHosts.length || ip_being_edited || !itemsAreChecked()}"> <a href ng-click="deselectAll();">[% locale.maketext('Clear Selection') %]</a> </li> <li class="divider"></li> <li ng-class="{disabled: !trustedHosts.length || ip_being_edited || !itemsAreChecked()}"> <a href ng-click="confirmDeletion();">[% locale.maketext('Delete Selected') %]</a> </li> <li ng-class="{disabled: !trustedHosts.length || ip_being_edited}"> <a href ng-click="confirmDeleteAll();">[% locale.maketext('Delete All') %]</a> </li> <li class="divider"></li> <li ng-class="{disabled: netblockTrusted || ip_being_edited}"> <a href ng-click="trustMyServerNetblock();">[% locale.maketext('Add Neighboring [asis,IP] Addresses') %]</a> </li> <li ng-class="{disabled: !netblockTrusted || ip_being_edited}"> <a href ng-click="untrustMyServerNetblock();">[% locale.maketext('Remove Neighboring [asis,IP] Addresses') %]</a> </li> <li class="divider"></li> <li> <a href ng-click="forceLoadTrustedHosts();">[% locale.maketext('Reload Trusted Hosts from Server') %]</a> </li> </ul> </span> </th> </tr> </thead> <tbody> <tr ng-repeat="trustedHost in meta.filteredList"> <td class="mass_edit_checkbox"> <input type="checkbox" id="{{trustedHost.ip}}_checked" class="selectItem" title="[% locale.maketext('Click to select “[_1]”.', '{{trustedHost.host_ip}}') %]" data-ip="{{trustedHost.host_ip}}" ng-disabled="trustedHostsBeingEdited" ng-click="checkSelection()"> </td> <td class="ip_column" ng-bind-html="trustedHost.host_ip | ipWrap "></td> <td class="comment_column wordbreak"> {{trustedHost.comment}} </td> <td> <button class="btn btn-link" ng-click="editTrustedHost(trustedHost)" ng-disabled="trustedHostsBeingEdited" ng-attr-title="{{editTooltip(trustedHost.host_ip)}}"> <span class="glyphicon glyphicon-pencil"></span> [% locale.maketext('Edit') %] </button> <button class="btn btn-link" ng-click="confirmDeletion(trustedHost)" ng-disabled="trustedHostsBeingEdited" ng-attr-title="{{deleteTooltip(trustedHost.host_ip)}}"> <span class="glyphicon glyphicon-trash"></span> [% locale.maketext('Delete') %] </button> </td> <td class="gear_column"></td> </tr> <tr id="emptyListNotice" class="info empty-row" ng-show="isListEmpty()" ng-switch="list_loading"> <td colspan="5" id="loadingMessage" ng-switch-when="true"> <i id="loadingSpinner" class="fas fa-spinner fa-spin"></i> [% locale.maketext('Loading Trusted Hosts list.') %] </td> <td colspan="5" id="emptyMessage" ng-switch-default>[% locale.maketext('The Trusted Hosts list is empty.') %]</td> </tr> </tbody> </table> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings