9
9
>
10
10
< div gn-popover-anchor class ="row ">
11
11
< div
12
- class ="col-md-4 "
12
+ class ="col-md-3 gn-nopadding-left "
13
13
data-gn-circle-letter-icon ="c.organisation "
14
14
data-org-key ="c.email | getMailDomain "
15
15
> </ div >
16
16
17
- < div class ="col-md-8 ">
17
+ < div class ="col-md-9 ">
18
18
< div class ="gn-contact-card-role "> {{c.role | translate}}</ div >
19
19
< div class ="gn-contact-card-org "> {{c.organisation}}</ div >
20
20
</ div >
29
29
< div data-gn-metadata-individual ="c "> </ div >
30
30
31
31
< address data-ng-if ="c.address != '' || c.phone != '' ">
32
+ < label class ="visible-print " data-translate =""> mdAddress</ label >
32
33
< div data-ng-if ="c.address != '' ">
33
34
< i class ="fa fa-fw fa-map-marker "> </ i >
34
35
{{c.address}}
35
36
</ div >
36
37
< a href ="tel:{{c.phone}} " data-ng-if ="c.phone != '' ">
37
- < span data-translate =""> call</ span > {{c.phone}}
38
+ < i class ="fa fa-fw fa-phone "> </ i >
39
+ {{c.phone}}
38
40
</ a >
39
41
</ address >
40
42
41
43
< div
42
- data-gn-search-filter-link ="OrgForResource "
44
+ data-gn-search-filter-link ="OrgForResourceObject.default "
43
45
data-filter ="c.organisation "
44
46
data-label ="focusOnFrom "
45
47
>
56
58
gn-popover
57
59
gn-popover-dismiss =".content "
58
60
>
59
- < div gn-popover-anchor class ="row ">
60
- < div class ="col-md-12 ">
61
- < div class ="gn-contact-card-role "> {{cnts[0].role | translate}}</ div >
62
- < div class ="col-md-12 " data-ng-repeat ="c in cnts | orderBy:'organisation' ">
63
- < div class ="row ">
64
- < div
65
- class ="col-md-4 "
66
- data-gn-circle-letter-icon ="c.organisation "
67
- data-org-key ="c.email | getMailDomain "
68
- > </ div >
69
- < div class ="col-md-8 ">
70
- < div class ="gn-contact-card-org-group "> {{c.organisation}}</ div >
71
- </ div >
72
- </ div >
61
+ < div gn-popover-anchor >
62
+ < div class ="row " data-ng-repeat ="c in cnts | orderBy:'organisation' ">
63
+ < div
64
+ class ="col-md-3 gn-nopadding-left "
65
+ data-gn-circle-letter-icon ="c.organisation "
66
+ data-org-key ="c.email | getMailDomain "
67
+ > </ div >
68
+ < div class ="col-md-9 ">
69
+ < div class ="gn-contact-card-role "> {{cnts[0].role | translate}}</ div >
70
+ < div class ="gn-contact-card-org-group "> {{c.organisation}}</ div >
73
71
</ div >
74
72
</ div >
75
73
</ div >
78
76
<!-- Removing for now, because if you close open popup
79
77
the title disappear. <h3 class="popover-title">{{cnts[0].role | translate}}</h3>-->
80
78
< div data-ng-repeat ="c in cnts | orderBy:'organisation' ">
79
+ < label class ="visible-print " data-ng-if ="::c.website " data-translate =""
80
+ > mdWebsite</ label
81
+ >
81
82
< a data-ng-href ="{{::c.website}} " data-ng-if ="::c.website ">
82
83
< i class ="fa fa-fw fa-link "> </ i >
83
84
{{c.organisation}}
86
87
< div data-gn-metadata-individual ="c "> </ div >
87
88
88
89
< address data-ng-if ="c.address != '' || c.phone != '' ">
90
+ < label class ="visible-print " data-translate =""> mdAddress</ label >
89
91
< div data-ng-if ="c.address != '' ">
90
92
< i class ="fa fa-fw fa-map-marker "> </ i >
91
93
{{c.address}}
92
94
</ div >
93
95
< a href ="tel:{{c.phone}} " data-ng-if ="c.phone != '' ">
94
- < span data-translate =""> call</ span > {{c.phone}}
96
+ < i class ="fa fa-fw fa-phone "> </ i >
97
+ {{c.phone}}
95
98
</ a >
96
99
</ address >
97
100
98
101
< div
99
- data-gn-search-filter-link ="OrgForResource "
102
+ data-gn-search-filter-link ="OrgForResourceObject.default "
100
103
data-filter ="c.organisation "
101
104
data-label ="focusOnFrom "
102
105
>
118
121
>
119
122
< div gn-popover-anchor class ="row ">
120
123
< div
121
- class ="col-md-4 "
124
+ class ="col-md-3 gn-nopadding-left "
122
125
data-gn-circle-letter-icon ="org "
123
126
data-org-key ="contactByOrgRole[0].email | getMailDomain "
124
127
> </ div >
125
128
126
- < div class ="col-md-8 " ng-repeat ="c in contactByOrgRole ">
129
+ < div class ="col-md-9 " ng-repeat ="c in contactByOrgRole ">
127
130
< div class ="gn-contact-card-org-group "> {{c.organisation}}</ div >
128
131
129
132
< div class ="gn-contact-card-group-role " data-ng-repeat ="r in ::c.roles ">
142
145
< div data-gn-metadata-individual ="c "> </ div >
143
146
144
147
< address data-ng-if ="c.address != '' || c.phone != '' ">
148
+ < label class ="visible-print " data-translate =""> mdAddress</ label >
145
149
< div data-ng-if ="c.address != '' ">
146
150
< i class ="fa fa-fw fa-map-marker "> </ i >
147
151
{{c.address}}
148
152
</ div >
149
153
< a href ="tel:{{c.phone}} " data-ng-if ="c.phone != '' ">
150
- < span data-translate =""> call</ span > {{c.phone}}
154
+ < i class ="fa fa-fw fa-phone "> </ i >
155
+ {{c.phone}}
151
156
</ a >
152
157
</ address >
153
158
154
159
< div
155
- data-gn-search-filter-link ="OrgForResource "
160
+ data-gn-search-filter-link ="OrgForResourceObject.default "
156
161
data-filter ="c.organisation "
157
162
data-label ="focusOnFrom "
158
163
>
171
176
data-ng-if ="mode == 'default' "
172
177
data-ng-repeat ="c in mdContacts track by $index "
173
178
>
174
- < h3 >
175
- < i class ="fa fa-envelope "> </ i >
176
- {{c.role | translate}}
177
- </ h3 >
178
- < div class ="row ">
179
- < div class ="col-md-8 ">
179
+ < div class ="panel panel-address ">
180
+ < div class ="panel-heading ">
181
+ < h3 >
182
+ < i class ="fa fa-fw fa-address-card-o "> </ i >
183
+ {{c.role | translate}}
184
+ </ h3 >
185
+ </ div >
186
+ < div class ="panel-body ">
187
+ < img data-ng-if ="c.logo " class ="gn-source-logo " data-ng-src ="{{::c.logo}} " />
180
188
< address >
181
- < strong data-ng-if ="::c.website ">
182
- < a data-ng-href ="{{::c.website}} "> {{c.organisation}}</ a > < br />
183
- </ strong >
184
- < strong data-ng-if ="::!c.website "> {{c.organisation}}< br /> </ strong >
189
+ < div data-ng-if ="::c.website ">
190
+ < label data-translate =""> mdWebsite</ label >
191
+ < a data-ng-href ="{{::c.website}} ">
192
+ < i class ="fa fa-fw fa-link "> </ i >
193
+ {{c.organisation}}
194
+ </ a >
195
+ </ div >
196
+ < div data-ng-if ="::!c.website ">
197
+ < label data-translate =""> mdOrganization</ label >
198
+ {{c.organisation}}
199
+ </ div >
185
200
186
201
< div data-gn-metadata-individual ="c "> </ div >
187
202
188
- < div data-ng-if ="c.address != '' "> {{c.address}}</ div >
203
+ < div data-ng-if ="c.address != '' ">
204
+ < label data-translate =""> mdAddress</ label >
205
+ {{c.address}}
206
+ </ div >
189
207
< a href ="tel:{{c.phone}} " data-ng-if ="c.phone != '' ">
190
- < span data-translate =""> call</ span > {{c.phone}}
208
+ < label data-translate =""> mdPhone</ label >
209
+ < i class ="fa fa-fw fa-phone "> </ i >
210
+ {{c.phone}}
191
211
</ a >
192
212
</ address >
193
213
</ div >
194
- < div class ="col-md-4 ">
195
- < img data-ng-if ="c.logo " class ="gn-source-logo " data-ng-src ="{{::c.logo}} " />
196
- </ div >
197
214
</ div >
198
215
</ div >
199
216
@@ -203,37 +220,55 @@ <h3>
203
220
data-ng-if ="mode == 'role' "
204
221
data-ng-repeat ="(roles, contactByRole) in mdContactsByRole "
205
222
>
206
- < h3 >
207
- < i class ="fa fa-envelope "> </ i >
208
- < span > {{translateRoles(roles)}} </ span >
209
- </ h3 >
210
- < div
211
- class ="row "
212
- data-ng-repeat ="(organisation, contact) in contactByRole | groupBy:'organisation' "
213
- >
214
- < div class ="col-md-8 ">
215
- < address >
216
- < strong data-ng-if ="::c.website ">
217
- < a data-ng-href ="{{::c.website}} "> {{c.organisation}}</ a > < br />
218
- </ strong >
219
- < strong data-ng-if ="::!c.website "> {{c.organisation}}< br /> </ strong >
223
+ < div class ="panel panel-address ">
224
+ < div class ="panel-heading ">
225
+ < h3 >
226
+ < i class ="fa fa-fw fa-address-card-o "> </ i >
227
+ < span > {{translateRoles(roles)}} </ span >
228
+ </ h3 >
229
+ </ div >
230
+ < div class ="panel-body ">
231
+ < div
232
+ data-ng-repeat ="(organisation, contact) in contactByRole | groupBy:'organisation' "
233
+ >
234
+ <!-- Logo for organisation: display for 1st contact in organisation -->
235
+ < div data-ng-repeat ="c in contact | limitTo:1 ">
236
+ < img data-ng-if ="c.logo " class ="gn-source-logo " data-ng-src ="{{::c.logo}} " />
237
+ </ div >
238
+ < address >
239
+ < div data-ng-if ="::c.website ">
240
+ < label data-translate =""> mdWebsite</ label >
241
+ < a data-ng-href ="{{::c.website}} ">
242
+ < i class ="fa fa-fw fa-link "> </ i >
243
+ {{c.organisation}}
244
+ </ a >
245
+ </ div >
246
+ < div data-ng-if ="::!c.website ">
247
+ < label data-translate =""> mdOrganization</ label >
248
+ {{c.organisation}}
249
+ </ div >
220
250
221
- < span data-ng-repeat ="c in contact track by $index ">
222
- < div data-gn-metadata-individual ="c "> </ div >
223
- </ span >
251
+ < div data-ng-repeat ="c in contact track by $index ">
252
+ < div data-gn-metadata-individual ="c "> </ div >
253
+ </ div >
224
254
225
- <!-- Address for organisation: display for 1st contact in organisation -->
226
- < span data-ng-repeat ="c in contact | limitTo:1 ">
227
- < div data-ng-if ="c.address != '' "> {{c.address}}</ div >
228
- < a href ="tel:{{c.phone}} " data-ng-if ="c.phone != '' ">
229
- < span data-translate =""> call</ span > {{c.phone}}
230
- </ a >
231
- </ span >
232
- </ address >
233
- </ div >
234
- <!-- Logo for organisation: display for 1st contact in organisation -->
235
- < div class ="col-md-4 " data-ng-repeat ="c in contact | limitTo:1 ">
236
- < img data-ng-if ="c.logo " class ="gn-source-logo " data-ng-src ="{{::c.logo}} " />
255
+ <!-- Address for organisation: display for 1st contact in organisation -->
256
+ < div data-ng-repeat ="c in contact | limitTo:1 ">
257
+ < div data-ng-if ="c.address != '' ">
258
+ < label data-translate =""> mdAddress</ label >
259
+ {{c.address}}
260
+ </ div >
261
+
262
+ < div data-ng-if ="c.phone != '' ">
263
+ < label data-translate =""> mdPhone</ label >
264
+ < a href ="tel:{{c.phone}} ">
265
+ < i class ="fa fa-fw fa-phone "> </ i >
266
+ {{c.phone}}
267
+ </ a >
268
+ </ div >
269
+ </ div >
270
+ </ address >
271
+ </ div >
237
272
</ div >
238
273
</ div >
239
274
</ div >
@@ -244,32 +279,42 @@ <h3>
244
279
data-ng-if ="mode == 'org-role' "
245
280
data-ng-repeat ="(org, contactByOrgRole) in mdContactsByOrgRole "
246
281
>
247
- < address >
248
- < strong data-ng-if ="::orgWebsite[org] ">
249
- < i class ="fa fa-fw fa-link "> </ i >
250
- < a data-ng-href ="{{::orgWebsite[org]}} "> {{org}}</ a > < br />
251
- </ strong >
252
- < strong data-ng-if ="::!orgWebsite[org] "> {{org}} </ strong >
282
+ < div class ="panel panel-address ">
283
+ < div class ="panel-body ">
284
+ < address >
285
+ < div data-ng-if ="::orgWebsite[org] ">
286
+ < label data-translate =""> mdWebsite</ label >
287
+ < a data-ng-href ="{{::orgWebsite[org]}} ">
288
+ < i class ="fa fa-fw fa-link "> </ i >
289
+ {{org}}
290
+ </ a >
291
+ </ div >
292
+ < div data-ng-if ="::!orgWebsite[org] ">
293
+ < label data-translate =""> mdOrganization</ label >
294
+ {{org}}
295
+ </ div >
253
296
254
- < div
255
- ng-repeat ="(key, contactGroupByAddress) in contactByOrgRole | groupBy:'address' "
256
- >
257
- < span data-ng-if ="key != '' ">
258
- < i class ="fa fa-fw fa-map-marker "> </ i >
259
- {{key}}< br />
260
- </ span >
261
- < ul >
262
- < li
263
- ng-repeat ="(roles, contactGroupByRole) in contactGroupByAddress | groupBy:'roles' "
297
+ < div
298
+ ng-repeat ="(key, contactGroupByAddress) in contactByOrgRole | groupBy:'address' "
264
299
>
265
- {{translateRoles(roles)}}:< br />
266
- < span data-ng-repeat ="c in contactGroupByRole track by $index ">
267
- < div data-gn-metadata-individual ="c "> </ div >
268
- < span data-ng-if ="!$last "> < hr /> </ span >
300
+ < span data-ng-if ="key != '' ">
301
+ < i class ="fa fa-fw fa-map-marker "> </ i >
302
+ {{key}}< br />
269
303
</ span >
270
- </ li >
271
- </ ul >
304
+ < ul >
305
+ < li
306
+ ng-repeat ="(roles, contactGroupByRole) in contactGroupByAddress | groupBy:'roles' "
307
+ >
308
+ {{translateRoles(roles)}}:< br />
309
+ < div data-ng-repeat ="c in contactGroupByRole track by $index ">
310
+ < div data-gn-metadata-individual ="c "> </ div >
311
+ < span data-ng-if ="!$last "> < hr /> </ span >
312
+ </ div >
313
+ </ li >
314
+ </ ul >
315
+ </ div >
316
+ </ address >
272
317
</ div >
273
- </ address >
318
+ </ div >
274
319
</ div >
275
320
</ div >
0 commit comments