This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
directory-results.html
76 lines (69 loc) · 2.74 KB
/
directory-results.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at the following location:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<h4 class="md-subhead">
<div class="subhead-border" ng-style="{background: primaryColorRgb}"></div>
Directory
</h4>
<div layout="row" layout-align="center center">
<loading-gif
ng-show="wiscDirectoryLoading"
data-object="wiscDirectoryResults"
data-empty="wiscDirectoryResultsEmpty"></loading-gif>
</div>
<div ng-show="wiscDirectoryResultsEmpty && !wiscDirectoryTooManyResults" class='no-result'>
No directory results.
</div>
<div ng-if="wiscDirectoryErrorMessage"
layout="row" layout-align="center center">
<p>
{{wiscDirectoryErrorMessage}}
</p>
</div>
<div class="result" ng-repeat="item in wiscDirectoryResults | limitTo:wiscDirectoryResultLimit">
<h4>{{item.fullName}}</h4>
<p ng-if="item.formalName">Also known as {{item.formalName}}</p>
<p>
<a ng-repeat="email in item.emails" ng-href="mailto:{{email}}" target="_blank" rel="noopener noreferrer">{{email}}</a>
<a ng-repeat="phone in item.phones" ng-href="tel:{{phone}}" target="_blank" rel="noopener noreferrer">{{phone}}</a>
</p>
<div ng-if="showingDetails" class="result">
<div ng-if="item.address" class="moreDetails">
<p>{{item.address.room}}</p>
<p>{{item.address.streetAddress}}</p>
<p>{{item.address.cityStateZip}}</p>
</div>
<div ng-repeat="title in item.titles" class="moreDetails">
<p>Title: {{title.title}}</p>
<p>Division: {{title.division}}</p>
<p>Department: {{title.department}}</p>
<p>Unit: {{title.subdepartment}}</p>
</div>
</div>
<div ng-click="showingDetails=!showingDetails">
<p>
<a href="" ng-if="item.titles[0] || item.address">
<span ng-if="!showingDetails">See more</span>
<span ng-if="showingDetails">See less</span>
</a>
</p>
</div>
</div>
<div class="seeMoreResults">
<p ng-if="wiscDirectoryResultCount>wiscDirectoryResultLimit">
<a href="" ng-click="showAllDirectoryResults()">See all {{wiscDirectoryResultCount}} directory results</a>
</p>
</div>