2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 |
8 +--------------------------------------------------------------------+
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">
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|smarty:nodefaults}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}
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}
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">
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>
24 <td>{$form.title.html|crmAddClass:huge}
25 {if !empty($group.saved_search_id)} ({ts}Smart Group{/ts}){/if}
29 <tr class="crm-group-form-block-description">
30 <td class="label">{$form.description.label}</td>
31 <td>{$form.description.html}</td>
34 <tr><td colspan="2">{ts}If either of the following fields are filled out they will be used instead of the title or description field in profiles and Mailing List Subscription/unsubscribe forms{/ts}</td></tr>
36 <tr class="crm-group-form-block-frontend-title">
37 <td class="label">{$form.frontend_title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='frontend_title' id=$group.id}{/if}</td>
38 <td>{$form.frontend_title.html|crmAddClass:huge}
39 {if !empty($group.saved_search_id)} ({ts}Smart Group{/ts}){/if}
43 <tr class="crm-group-form-block-frontend-description">
44 <td class="label">{$form.frontend_description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='frontend_description' id=$group.id}{/if}</td>
45 <td>{$form.frontend_description.html}</td>
48 {if !empty($form.group_type)}
49 <tr class="crm-group-form-block-group_type">
50 <td class="label">{$form.group_type.label}</td>
51 <td>{$form.group_type.html} {help id="id-group-type" file="CRM/Group/Page/Group.hlp"}</td>
55 <tr class="crm-group-form-block-visibility">
56 <td class="label">{$form.visibility.label}</td>
57 <td>{$form.visibility.html|crmAddClass:huge} {help id="id-group-visibility" file="CRM/Group/Page/Group.hlp"}</td>
60 <tr class="crm-group-form-block-isReserved">
61 <td class="label">{$form.is_reserved.label}</td>
62 <td>{$form.is_reserved.html}
63 <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>
67 <tr class="crm-group-form-block-isActive">
68 <td class="label">{$form.is_active.label}</td>
69 <td>{$form.is_active.html}</td>
72 {if !empty($group.created_by)}
73 <tr class="crm-group-form-block-created">
74 <td class="label">{ts}Created By{/ts}</td>
75 <td>{$group.created_by}</td>
79 {if !empty($group.modified_by)}
80 <tr class="crm-group-form-block-modified">
81 <td class="label">{ts}Modified By{/ts}</td>
82 <td>{$group.modified_by}</td>
88 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
93 {include file="CRM/Group/Form/GroupsCommon.tpl"}
95 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
97 <div class="action-link">
98 <a {$crmURL|smarty:nodefaults}><i class="crm-i fa-users" aria-hidden="true"></i> {ts}Contacts in this Group{/ts}</a>
99 {if $editSmartGroupURL}
101 <a class="no-popup" href="{$editSmartGroupURL|smarty:nodefaults}"><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit Smart Group Criteria{/ts}</a>
107 <script type="text/javascript">
108 {/literal}{if !empty($freezeMailingList)}{literal}
109 cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailingList}{literal}]"]').prop('disabled',true);
110 {/literal}{/if}{literal}
111 {/literal}{if !empty($hideMailingList)}{literal}
112 cj('input[type=checkbox][name="group_type[{/literal}{$hideMailingList}{literal}]"]').hide();
113 cj('label[for="group_type[{/literal}{$hideMailingList}{literal}]"]').hide();
114 {/literal}{/if}{literal}