2016-01-25 21:22:22 +01:00
|
|
|
<div class="header">
|
|
|
|
<div class="title">
|
|
|
|
<h1 translate>Search results</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="details">
|
2017-01-20 11:35:29 +01:00
|
|
|
<form class="input-group" ng-submit="search()">
|
|
|
|
<input type="text" ng-change="search()" ng-model="searchquery" class="form-control">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-default" translate>Search</button>
|
|
|
|
</span>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="searchfilter spacer-top">
|
2017-02-17 12:43:50 +01:00
|
|
|
<label ng-repeat="filter in results | orderBy: 'weight'" class="checkbox-inline"
|
|
|
|
ng-click="filter.checked = !filter.checked">
|
|
|
|
<i class="fa" ng-class="filter.checked ? 'fa-check-square-o' : 'fa-square-o'"></i>
|
2017-01-20 11:35:29 +01:00
|
|
|
{{ filter.verboseName | translate }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="searchresults spacer-top-lg">
|
|
|
|
<div ng-show="results">
|
|
|
|
<div ng-repeat="result in results | orderBy: 'weight'" ng-if="result.checked && result.elements.length">
|
|
|
|
<h3>{{ result.verboseName | translate }}</h3>
|
|
|
|
<div class="hits">
|
|
|
|
{{ result.elements.length}} <translate>results</translate>
|
|
|
|
</div>
|
|
|
|
<ol class="list-unstyled">
|
|
|
|
<li ng-repeat="element in result.elements">
|
|
|
|
<a ng-if="!element.mediafileUrl" ui-sref="{{ result.urlDetailState }}({id: {{element.id}}})">
|
|
|
|
{{ element.getSearchResultName() }}
|
|
|
|
</a>
|
|
|
|
<a ng-if="element.mediafileUrl" href="{{ element.mediafileUrl }}" target="_blank">
|
|
|
|
{{ element.getSearchResultName() }}
|
|
|
|
</a>
|
|
|
|
</ol>
|
2016-08-05 17:10:18 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p ng-show="!results || results.length == 0" translate>No results.</p>
|
2017-01-20 11:35:29 +01:00
|
|
|
|
2016-01-25 21:22:22 +01:00
|
|
|
</div>
|