Change inform-icon to fa-info-circle
[civicrm-core.git] / templates / CRM / Profile / Page / Listings.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
46312a4d
TO
10
11<div class="crm-profile-name-{$ufGroupName}">
12{crmRegion name=profile-search-`$ufGroupName`}
13
6a488035
TO
14{* make sure there are some fields in the selector *}
15{if ! empty( $columnHeaders ) || $isReset }
16
17{if $search}
18<div class="crm-block crm-form-block">
19 {include file="$searchTPL"}
20</div>
21{/if}
22<div class="crm-block crm-content-block">
23{* show profile listings criteria ($qill) *}
24{if $rows}
25
26 {if $qill}
27 <div class="crm-search-tasks">
28 <div id="search-status">
29 {ts}Displaying contacts where:{/ts}
30 {include file="CRM/common/displaySearchCriteria.tpl"}
13a3d214 31 {if $mapURL}<a href="{$mapURL}"><i class="crm-i fa-map-marker" aria-hidden="true"></i> {ts}Map these contacts{/ts}</a>{/if}
6a488035
TO
32 </div>
33 </div>
34 {/if}
35
36
37 <div class="crm-search-results">
38 {include file="CRM/common/pager.tpl" location="top"}
39 {* Search criteria are passed to tpl in the $qill array *}
40
41
42 {strip}
43 <table>
44 <tr class="columnheader">
45 {foreach from=$columnHeaders item=header}
46 <th scope="col">
47 {if $header.sort}
48 {assign var='key' value=$header.sort}
49 {$sort->_response.$key.link}
50 {else}
51 {$header.name}
52 {/if}
53 </th>
54 {/foreach}
55 </tr>
56
57 {counter start=0 skip=1 print=false}
58 {foreach from=$rows item=row name=listings}
59 <tr id="row-{$smarty.foreach.listings.iteration}" class="{cycle values="odd-row,even-row"}">
ae94c3e3
RN
60 {foreach from=$row key=index item=value}
61 {if $columnHeaders.$index.field_name}
62 <td class="crm-{$columnHeaders.$index.field_name}">{$value}</td>
63 {else}
64 <td>{$value}</td>
65 {/if}
6a488035
TO
66 {/foreach}
67 </tr>
68 {/foreach}
69 </table>
70 {/strip}
71 {include file="CRM/common/pager.tpl" location="bottom"}
72 </div>
73{elseif ! $isReset}
74 {include file="CRM/Contact/Form/Search/EmptyResults.tpl" context="Profile"}
75{/if}
76
77
78{else}
79 <div class="messages status no-popup">
34d6cec4 80 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
81 {ts}No fields in this Profile have been configured to display as a result column in the search results table. Ask the site administrator to check the Profile setup.{/ts}
82 </div>
83{/if}
46312a4d
TO
84</div>
85
86{/crmRegion}
87</div>{* crm-profile-name-NAME *}