Add basic search filter for mailboxes and mailinglists

This commit is contained in:
Johannes Zellner
2019-10-22 12:47:32 +02:00
parent a22602f6d1
commit ab23882c27
2 changed files with 16 additions and 10 deletions

View File

@@ -307,18 +307,20 @@
<br/>
</div>
<br/>
<div class="text-left">
<h3 style="margin-bottom: 15px;">Mailboxes
<button class="btn btn-primary btn-outline pull-right" ng-click="mailboxes.add.show()" ng-disabled="!selectedDomain.mailConfig.enabled"
tooltip-enable="!selectedDomain.mailConfig.enabled" uib-tooltip="Email is disabled for this domain">
<i class="fa fa-inbox"></i> New Mailbox
</button>
<button class="btn btn-primary btn-outline pull-right" ng-click="mailboxes.add.show()" ng-disabled="!selectedDomain.mailConfig.enabled" tooltip-enable="!selectedDomain.mailConfig.enabled" uib-tooltip="Email is disabled for this domain"><i class="fa fa-inbox"></i> New Mailbox</button>
<input class="form-control pull-right" style="width: 200px;" placeholder="Search" type="text" ng-model="mailboxes.search"/>
</h3>
</div>
<div class="card card-large" style="margin-bottom: 15px;">
<div class="row">
<div class="col-md-12">
<table class="table table-hover">
<thead>
<tr>
@@ -329,7 +331,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="mailbox in mailboxes.mailboxes">
<tr ng-repeat="mailbox in mailboxes.mailboxes | filter:mailboxes.search">
<td class="hand" ng-click="mailboxes.edit.show(mailbox)">
{{ mailbox.name }}
</td>
@@ -350,12 +352,12 @@
</div>
</div>
<br/>
<div class="text-left">
<h3 style="margin-bottom: 15px;">Mailing Lists
<button class="btn btn-primary btn-outline pull-right" ng-click="mailinglists.add.show()" ng-disabled="!selectedDomain.mailConfig.enabled"
tooltip-enable="!selectedDomain.mailConfig.enabled" uib-tooltip="Email is disabled for this domain">
<i class="fa fa-list"></i> New Mailing list
</button>
<button class="btn btn-primary btn-outline pull-right" ng-click="mailinglists.add.show()" ng-disabled="!selectedDomain.mailConfig.enabled" tooltip-enable="!selectedDomain.mailConfig.enabled" uib-tooltip="Email is disabled for this domain"><i class="fa fa-list"></i> New Mailing list</button>
<input class="form-control pull-right" style="width: 200px;" placeholder="Search" type="text" ng-model="mailinglists.search"/>
</h3>
</div>
@@ -376,7 +378,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="list in mailinglists.mailinglists">
<tr ng-repeat="list in mailinglists.mailinglists | filter:mailinglists.search">
<td class="hand" ng-click="mailinglists.edit.show(list)">
{{ list.name }}
</td>
@@ -394,6 +396,8 @@
</div>
</div>
<br/>
<div class="text-left">
<h3>Catch-all</h3>
</div>