2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
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 {* this template is used for adding/editing group (name and description only) *}
27 <div class="crm-block crm-form-block crm-group-form-block">
30 {capture assign=crmURL}class="no-popup" href="{crmURL p="civicrm/group/search" q="reset=1&force=1&context=smog&gid=`$group.id`"}"{/capture}
31 {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}
33 {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}
36 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
37 <table class="form-layout">
38 <tr class="crm-group-form-block-title">
39 <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>
40 <td>{$form.title.html|crmAddClass:huge}
41 {if $group.saved_search_id} ({ts}Smart Group{/ts}){/if}
45 {if $group.created_by}
46 <tr class="crm-group-form-block-created">
47 <td class="label">{ts}Created By{/ts}</td>
48 <td>{$group.created_by}</td>
52 {if $group.modified_by}
53 <tr class="crm-group-form-block-modified">
54 <td class="label">{ts}Modified By{/ts}</td>
55 <td>{$group.modified_by}</td>
59 <tr class="crm-group-form-block-description">
60 <td class="label">{$form.description.label}</td>
61 <td>{$form.description.html}<br />
62 <span class="description">{ts}Group description is displayed when groups are listed in Profiles and Mailing List Subscribe forms.{/ts}</span>
67 <tr class="crm-group-form-block-group_type">
68 <td class="label">{$form.group_type.label}</td>
69 <td>{$form.group_type.html} {help id="id-group-type" file="CRM/Group/Page/Group.hlp"}</td>
73 <tr class="crm-group-form-block-visibility">
74 <td class="label">{$form.visibility.label}</td>
75 <td>{$form.visibility.html|crmAddClass:huge} {help id="id-group-visibility" file="CRM/Group/Page/Group.hlp"}</td>
78 <tr class="crm-group-form-block-isReserved">
79 <td class="label">{$form.is_reserved.label}</td>
80 <td>{$form.is_reserved.html}
81 <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>
85 <tr class="crm-group-form-block-isActive">
86 <td class="label">{$form.is_active.label}</td>
87 <td>{$form.is_active.html}</td>
91 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
96 {include file="CRM/Group/Form/GroupsCommon.tpl"}
98 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
100 <div class="action-link">
101 <a {$crmURL}>» {ts}Contacts in this Group{/ts}</a>
102 {if $group.saved_search_id}
104 {if $group.mapping_id}
105 <a class="no-popup" href="{crmURL p="civicrm/contact/search/builder" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">» {ts}Edit Smart Group Criteria{/ts}</a>
106 {elseif $group.search_custom_id}
107 <a class="no-popup" href="{crmURL p="civicrm/contact/search/custom" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">» {ts}Edit Smart Group Criteria{/ts}</a>
109 <a class="no-popup" href="{crmURL p="civicrm/contact/search/advanced" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">» {ts}Edit Smart Group Criteria{/ts}</a>
117 <script type="text/javascript">
118 {/literal}{if $freezeMailignList}{literal}
119 cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailignList}{literal}]"]').prop('disabled',true);
120 {/literal}{/if}{literal}
121 {/literal}{if $hideMailignList}{literal}
122 cj('input[type=checkbox][name="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
123 cj('label[for="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
124 {/literal}{/if}{literal}