<form id="form-filtro" name="formFiltro" class="item-form">
    <p class="legend">{{configCtrl.currentFilter.Titulo}}</p>

    <fieldset class="campos-fitlro">
        <!--<input class="search" ng-model="configCtrl.currentFilter.searchText" id="filterSearch" type="search"  placeholder="Digite uma opção ou selecione na lista" />-->
        <input class="search" ng-model="configCtrl.currentFilter.searchText" id="filterSearch" type="search" placeholder="Digite uma opção ou selecione na lista" />
    </fieldset>

    <div ng-if="configCtrl.checkboxList.length == 0" class="container-warning">
        <p class="warning-filtro">Nenhum {{configCtrl.currentFilter.Titulo}} encontrado no filtro selecionado</p>
    </div>

    <div ng-if="configCtrl.checkboxList.length != 0">
        <ul class="lista-filtro">
            <li class="checkbox">
                <span>
                    <input type="checkbox" name="toggleCheck" id="toggleCheck"
                           ng-model="configCtrl.currentFilter.toggleCheck" ng-click="configCtrl.toggleCheckAll()">
                    <label for="toggleCheck">TODOS</label>
                </span>
            </li>
            <li class="checkbox" ng-repeat="item in configCtrl.checkboxList |  filter: configCtrl.currentFilter.searchText">
                <span>
                    {{configCtrl.currentFilter}}
                    <input type="checkbox" name="check-mini-{{$index}}" id="check-mini-{{$index}}"
                           checklist-model="configCtrl.currentFilter.Pesquisa" checklist-value="item" ng-change="configCtrl.check(item, checked, configCtrl.currentFilter.Nome)">
                    <label for="check-mini-{{$index}}">{{item}} </label>
                </span>
            </li>
        </ul>
    </div>
</form>