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 | {* this template is used for adding/editing group (name and description only) *} | |
11 | <div class="crm-block crm-form-block crm-group-form-block"> | |
158eb2c1 MWMC |
12 | <div class="help"> |
13 | {if $action eq 2} | |
6f6d2baf CW |
14 | {capture assign=crmURL}class="no-popup" href="{crmURL p="civicrm/group/search" q="reset=1&force=1&context=smog&gid=`$group.id`"}"{/capture} |
15 | {ts 1=$crmURL}You can edit the Name and Description for this group here. Click <a %1>Contacts in this Group</a> to view, add or remove contacts in this group.{/ts} | |
158eb2c1 | 16 | {else} |
6a488035 | 17 | {ts}Enter a unique name and a description for your new group here. Then click 'Continue' to find contacts to add to your new group.{/ts} |
158eb2c1 MWMC |
18 | {/if} |
19 | </div> | |
20 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
21 | <table class="form-layout"> | |
22 | <tr class="crm-group-form-block-title"> | |
6a488035 | 23 | <td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='title' id=$group.id}{/if}</td> |
158eb2c1 MWMC |
24 | <td>{$form.title.html|crmAddClass:huge} |
25 | {if $group.saved_search_id} ({ts}Smart Group{/ts}){/if} | |
26 | </td> | |
27 | </tr> | |
6a488035 | 28 | |
158eb2c1 MWMC |
29 | {if $group.created_by} |
30 | <tr class="crm-group-form-block-created"> | |
31 | <td class="label">{ts}Created By{/ts}</td> | |
32 | <td>{$group.created_by}</td> | |
33 | </tr> | |
34 | {/if} | |
6a488035 | 35 | |
158eb2c1 MWMC |
36 | {if $group.modified_by} |
37 | <tr class="crm-group-form-block-modified"> | |
38 | <td class="label">{ts}Modified By{/ts}</td> | |
39 | <td>{$group.modified_by}</td> | |
40 | </tr> | |
41 | {/if} | |
d0dfb649 | 42 | |
158eb2c1 | 43 | <tr class="crm-group-form-block-description"> |
6a488035 TO |
44 | <td class="label">{$form.description.label}</td> |
45 | <td>{$form.description.html}<br /> | |
158eb2c1 MWMC |
46 | <span class="description">{ts}Group description is displayed when groups are listed in Profiles and Mailing List Subscribe forms.{/ts}</span> |
47 | </td> | |
48 | </tr> | |
6a488035 | 49 | |
158eb2c1 | 50 | {if $form.group_type} |
6a488035 | 51 | <tr class="crm-group-form-block-group_type"> |
158eb2c1 MWMC |
52 | <td class="label">{$form.group_type.label}</td> |
53 | <td>{$form.group_type.html} {help id="id-group-type" file="CRM/Group/Page/Group.hlp"}</td> | |
6a488035 | 54 | </tr> |
158eb2c1 | 55 | {/if} |
6a488035 | 56 | |
158eb2c1 | 57 | <tr class="crm-group-form-block-visibility"> |
6a488035 TO |
58 | <td class="label">{$form.visibility.label}</td> |
59 | <td>{$form.visibility.html|crmAddClass:huge} {help id="id-group-visibility" file="CRM/Group/Page/Group.hlp"}</td> | |
158eb2c1 | 60 | </tr> |
6a488035 | 61 | |
158eb2c1 MWMC |
62 | <tr class="crm-group-form-block-isReserved"> |
63 | <td class="label">{$form.is_reserved.label}</td> | |
64 | <td>{$form.is_reserved.html} | |
65 | <span class="description">{ts}If reserved, only users with 'administer reserved groups' permission can disable, delete, or change settings for this group. The reserved flag does NOT affect users ability to add or remove contacts from a group.{/ts}</span> | |
66 | </td> | |
67 | </tr> | |
6a488035 | 68 | |
158eb2c1 MWMC |
69 | <tr class="crm-group-form-block-isActive"> |
70 | <td class="label">{$form.is_active.label}</td> | |
71 | <td>{$form.is_active.html}</td> | |
72 | </tr> | |
485105b1 | 73 | |
158eb2c1 | 74 | <tr> |
6a488035 | 75 | <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td> |
158eb2c1 MWMC |
76 | </tr> |
77 | </table> | |
6a488035 | 78 | |
31c31c92 | 79 | {*CRM-14190*} |
d44e3aea | 80 | {include file="CRM/Group/Form/GroupsCommon.tpl"} |
6a488035 | 81 | |
158eb2c1 MWMC |
82 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> |
83 | {if $action neq 1} | |
84 | <div class="action-link"> | |
13a3d214 | 85 | <a {$crmURL}><i class="crm-i fa-users" aria-hidden="true"></i> {ts}Contacts in this Group{/ts}</a> |
4cb27797 | 86 | {if $editSmartGroupURL} |
158eb2c1 | 87 | <br /> |
4cb27797 | 88 | <a class="no-popup" href="{$editSmartGroupURL}"><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit Smart Group Criteria{/ts}</a> |
6a488035 | 89 | {/if} |
158eb2c1 MWMC |
90 | </div> |
91 | {/if} | |
6a488035 | 92 | |
158eb2c1 MWMC |
93 | {literal} |
94 | <script type="text/javascript"> | |
4392f2a0 JF |
95 | {/literal}{if $freezeMailingList}{literal} |
96 | cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailingList}{literal}]"]').prop('disabled',true); | |
158eb2c1 | 97 | {/literal}{/if}{literal} |
4392f2a0 JF |
98 | {/literal}{if $hideMailingList}{literal} |
99 | cj('input[type=checkbox][name="group_type[{/literal}{$hideMailingList}{literal}]"]').hide(); | |
100 | cj('label[for="group_type[{/literal}{$hideMailingList}{literal}]"]').hide(); | |
158eb2c1 MWMC |
101 | {/literal}{/if}{literal} |
102 | </script> | |
103 | {/literal} | |
6a488035 | 104 | </div> |