2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 +--------------------------------------------------------------------+
26 {* The name "custom data group" is replaced by "custom data set" *}
27 {if $action eq 1 or $action eq 2 or $action eq 4}
28 {include file="CRM/Custom/Form/Group.tpl"}
29 {elseif $action eq 1024}
30 {include file="CRM/Custom/Form/Preview.tpl"}
32 {include file="CRM/Custom/Form/DeleteGroup.tpl"}
35 {ts}Custom data is stored in custom fields. Custom fields are organized into logically related custom data sets (e.g. Volunteer Info). Use custom fields to collect and store custom data which are not included in the standard CiviCRM forms. You can create one or many sets of custom fields.{/ts} {docURL page="user/organising-your-data/custom-fields"}
39 <div class="crm-content-block crm-block">
40 <div id="custom_group">
42 {* handle enable/disable actions*}
43 {include file="CRM/common/enableDisableApi.tpl"}
44 {include file="CRM/common/crmeditable.tpl"}
45 <table id="options" class="row-highlight">
49 <th>{ts}Enabled?{/ts}</th>
50 <th>{ts}Used For{/ts}</th>
51 <th>{ts}Type{/ts}</th>
52 <th>{ts}Order{/ts}</th>
53 <th>{ts}Style{/ts}</th>
58 {foreach from=$rows item=row}
59 <tr id="CustomGroup-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
60 <td><span class="crmf-title crm-editable">{$row.title}</span></td>
61 <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
62 <td>{if $row.extends eq 'Contact'}{ts}All Contact Types{/ts}{else}{$row.extends_display}{/if}</td>
63 <td>{$row.extends_entity_column_value}</td>
64 <td class="nowrap">{$row.weight}</td>
65 <td>{$row.style_display}</td>
66 <td>{$row.action|replace:'xx':$row.id}</td>
72 {if NOT ($action eq 1 or $action eq 2) }
73 <div class="action-link">
74 <a href="{crmURL p='civicrm/admin/custom/group' q="action=add&reset=1"}" id="newCustomDataGroup" class="button"><span><div class="icon add-icon"></div>{ts}Add Set of Custom Fields{/ts}</span></a>
82 {if $action ne 1} {* When we are adding an item, we should not display this message *}
83 <div class="messages status no-popup">
84 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
85 {capture assign=crmURL}{crmURL p='civicrm/admin/custom/group' q='action=add&reset=1'}{/capture}
86 {ts 1=$crmURL}No custom data groups have been created yet. You can <a id="newCustomDataGroup" href='%1'>add one</a>.{/ts}