Commit | Line | Data |
---|---|---|
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 | *} | |
10 | {* The name "custom data group" is replaced by "custom data set" *} | |
f6eedce7 | 11 | <div class="help"> |
39dcb36e | 12 | {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/creating-custom-fields"} |
6a488035 TO |
13 | </div> |
14 | ||
15 | {if $rows} | |
16 | <div class="crm-content-block crm-block"> | |
17 | <div id="custom_group"> | |
18 | {strip} | |
19 | {* handle enable/disable actions*} | |
4d17a233 | 20 | {include file="CRM/common/enableDisableApi.tpl"} |
e5e1786f | 21 | <table id="options" class="row-highlight"> |
6a488035 TO |
22 | <thead> |
23 | <tr> | |
3c381762 | 24 | <th>{ts}ID{/ts}</th> |
6a488035 TO |
25 | <th>{ts}Set{/ts}</th> |
26 | <th>{ts}Enabled?{/ts}</th> | |
27 | <th>{ts}Used For{/ts}</th> | |
28 | <th>{ts}Type{/ts}</th> | |
e5e1786f | 29 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
30 | <th>{ts}Style{/ts}</th> |
31 | <th></th> | |
6a488035 TO |
32 | </tr> |
33 | </thead> | |
34 | <tbody> | |
35 | {foreach from=$rows item=row} | |
e39e96ee | 36 | <tr id="CustomGroup-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
3c381762 | 37 | <td>{$row.id}</td> |
b633f8bd | 38 | <td class="crmf-title crm-editable">{$row.title}</td> |
6a488035 TO |
39 | <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
40 | <td>{if $row.extends eq 'Contact'}{ts}All Contact Types{/ts}{else}{$row.extends_display}{/if}</td> | |
39b97f9f | 41 | <td>{if !empty($row.extends_entity_column_value)}{$row.extends_entity_column_value}{/if}</td> |
e39e96ee | 42 | <td class="nowrap">{$row.weight|smarty:nodefaults}</td> |
6a488035 | 43 | <td>{$row.style_display}</td> |
e39e96ee | 44 | <td>{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td> |
6a488035 TO |
45 | </tr> |
46 | {/foreach} | |
47 | </tbody> | |
48 | </table> | |
49 | ||
6a488035 | 50 | <div class="action-link"> |
aca7613b | 51 | {crmButton p='civicrm/admin/custom/group/edit' q="action=add&reset=1" id="newCustomDataGroup" icon="plus-circle"}{ts}Add Set of Custom Fields{/ts}{/crmButton} |
6a488035 | 52 | </div> |
6a488035 TO |
53 | |
54 | {/strip} | |
55 | </div> | |
56 | </div> | |
57 | {else} | |
6a488035 TO |
58 | <div class="messages status no-popup"> |
59 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> | |
aca7613b | 60 | {capture assign=crmURL}{crmURL p='civicrm/admin/custom/group/edit' q='action=add&reset=1'}{/capture} |
6a488035 TO |
61 | {ts 1=$crmURL}No custom data groups have been created yet. You can <a id="newCustomDataGroup" href='%1'>add one</a>.{/ts} |
62 | </div> | |
6a488035 | 63 | {/if} |