Current File : //usr/local/jetapps/var/www/jetbackup5/docroot/app/views/accountFilterGroups.htm
<div ng-controller="accountFilterGroups" class="controller-box">
    <h1>{{ lang.t("Account Filter Groups") }}</h1>
    
    <div class="row search-page-container">
        <div class="col-xs-12 col-sm-5 col-md-4 col-lg-6">
            <button class="btn btn-default" ng-click="fetch()"><em class="fas fa-redo" title="{{ lang.t('Refresh Records') }}"></em></button>
            <a href="{{primaryURL}}/accountFilterGroupManage" class="btn btn-primary" ng-click="changeView('/accountFilterGroupManage')">
                <em class="fas fa-plus"></em>
                {{ lang.t("Create New Filter Group") }}
            </a>
            <a href="{{primaryURL}}/accountFilters" class="btn btn-primary" ng-click="changeView('/accountFilters')">
                <em class="fas fa-cog"></em>
                {{ lang.t("Manage Account Filters") }}
            </a>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-2">
            <filter-box id="group_table_filter"
                    box-options="filterOptions"
                    ng-model="filter"
                    ng-change="fetch()">
            </filter-box>
        </div>
        <div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
            <search id="group_table_search" ng-model="metaData.filterValue" ng-change="fetch()"></search>
        </div>
    </div>

    <div class="table-responsive">
        <table class="table table-striped content-table">
            <thead>
            <tr>
                <th class="col-sm-4 col-md-4 col-lg-4 column-title">
                    <button sort-by sort-meta="meta" sort-field="name" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Name')) }}">{{ lang.t("Name") }}</button>
                </th>
                <th class="col-sm-2 col-md-2 col-lg-2 column-title">
                    <button sort-by sort-meta="meta" sort-field="owner" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Owner')) }}">{{ lang.t("Owner") }}</button>
                </th>
                <th class="col-sm-6 col-md-6 col-lg-6 column-title">
                    {{ lang.t("Filters") }}
                </th>
                <!--th class="col-sm-1 col-md-1 col-lg-1 column-title">
                    <button sort-by sort-meta="meta" sort-field="count" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Jobs Assigned')) }}">{{ lang.t("Jobs Assigned") }}</button>
                </th-->
            </tr>
        </thead>
        <tbody>
            <tr ng-hide="loadingGroups" ng-repeat-start="group in groups track by $index" id="group_row_{{$index}}" ng-click="openActions(group)" class="pointer">
                <td data-title="{{ lang.t('Name') }}">
                    <span title="{{ group.name }}">{{ group.name }}</span>
                </td>
                <td data-title="{{ lang.t('Owner') }}">
                    <span title="{{ group.owner_name }}">{{ group.owner_name }}</span>
                </td>
                <td data-title="{{ lang.t('Filters') }}">
                    <ul style="margin: 0; padding: 0 0 0 10px;">
                        <li ng-repeat="filter in group.filters">{{ filters[filter].name }} <small>({{ const.ACCOUNT_FILTER_TYPE_NAMES[filters[filter].type] }})</small></li>
                    </ul>
                </td>
                <!--td data-title="{{ lang.t('Jobs Assigned') }}">
                    <div uib-tooltip-template="'scheduleJobsAssigned.htm'" tooltip-placement="auto" tooltip-class="job-tooltip">
                        <span title="{{ jobs[schedule._id].length }}">{{ jobs[schedule._id].length }}</span>
                    </div>
                </td-->
            </tr>
            <tr ng-hide="loadingGroups" ng-repeat-end id="dt_module_row_{{$index}}">
                <td colspan="3" class="actions-cell">
                    <div class="action-module" ng-if="isOpenedActions(group)"
                        id="action_module_{{$index}}"
                        ng-include="includePath('accountFilterGroupActions')"></div>
                </td>
            </tr>
            <tr ng-hide="!loadingGroups">
                <td colspan="3">
                    <loading-box>
                        <span>{{ lang.t("Loading Account Filter Groups") }}</span>
                    </loading-box>
                </td>
            </tr>
            <tr ng-hide="groups.length > 0 || loadingGroups">
                <td colspan="3">
                    <span>{{ lang.t("No Account Filter Groups Found") }}</span>
                </td>
            </tr>
        </tbody>
        </table>
    </div>
    <pagination meta="meta" fetch="fetch"></pagination>
</div>
<script type="text/ng-template" id="scheduleJobsAssigned.htm">
    <div style="text-align: left; padding: 10px 0;">
        <h5 style="margin: 0 20px 5px 20px; font-weight: bold;">{{ lang.t("Jobs Assigned") }}</h5>
        <span style="margin: 0 20px;" ng-hide="jobs[schedule._id].length">{{ lang.t("No jobs assigned to this schedule") }}</span>
        <ul style="margin-bottom: 0;" ng-show="jobs[schedule._id].length">
            <li ng-repeat="job in jobs[schedule._id]">{{ job.name }}</li>
        </ul>

    </div>
</script>