2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
27 <h1>{ts}{$customGroupTitle}{/ts}</h1>
28 {if $records and $headers}
29 {include file="CRM/common/jsortable.tpl"}
30 <div id="browseValues">
33 <table id="records" class="display">
36 {foreach from=$headers key=recId item=head}
37 <th>{ts}{$head}{/ts}</th>
42 {foreach from=$records key=recId item=rows}
43 <tr class="{cycle values="odd-row,even-row"}">
44 {foreach from=$headers key=hrecId item=head}
45 <td>{$rows.$hrecId}</td>
47 <td>{$rows.action}</td>
54 <div id='profile-dialog' class="hiddenElement"></div>
56 <div class="messages status no-popup">
57 <div class="icon inform-icon"></div>
59 {ts 1=$customGroupTitle}No records of type '%1' found.{/ts}
61 <div id='profile-dialog' class="hiddenElement"></div>
65 <a accesskey="N" href="{crmURL p='civicrm/profile/edit' q="reset=1&id=`$contactId`&multiRecord=add&gid=`$gid`&snippet=1&context=multiProfileDialog&onPopupClose=`$onPopupClose`"}"
66 class="button action-item"><span><div class="icon add-icon"></div>{ts}Add New Record{/ts}</span></a>
70 <script type='text/javascript'>
72 function formDialog(dataURL, dialogTitle) {
75 success: function (content) {
76 cj('#profile-dialog').show().html(content).dialog({
85 close: function (event, ui) {
86 cj('#profile-dialog').html('');
89 cj('.action-link').hide();
90 cj('#profile-dialog #crm-profile-block .edit-value label').css('display', 'inline');
94 var profileName = {/literal}"{$ufGroupName}"{literal};
95 cj('.action-item').each(function () {
96 if (!cj(this).attr('jshref')) {
97 cj(this).attr('jshref', cj(this).attr('href'));
98 cj(this).attr('href', '#browseValues');
102 cj(".crm-profile-name-" + profileName + " .action-item").click(function () {
103 dataURL = cj(this).attr('jshref');
104 dialogTitle = cj(this).attr('title');
105 formDialog(dataURL, dialogTitle);