Merge pull request #23225 from braders/edit-group-nodefaults
[civicrm-core.git] / templates / CRM / Group / Form / Edit.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
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">
12 <div class="help">
13 {if $action eq 2}
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}
16 {else}
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}
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">
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)}&nbsp;({ts}Smart Group{/ts}){/if}
26 </td>
27 </tr>
28
29 <tr class="crm-group-form-block-description">
30 <td class="label">{$form.description.label}</td>
31 <td>{$form.description.html}</td>
32 </tr>
33
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>
35
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)}&nbsp;({ts}Smart Group{/ts}){/if}
40 </td>
41 </tr>
42
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>
46 </tr>
47
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>
52 </tr>
53 {/if}
54
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>
58 </tr>
59
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>
64 </td>
65 </tr>
66
67 <tr class="crm-group-form-block-isActive">
68 <td class="label">{$form.is_active.label}</td>
69 <td>{$form.is_active.html}</td>
70 </tr>
71
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>
76 </tr>
77 {/if}
78
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>
83 </tr>
84 {/if}
85
86
87 <tr>
88 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
89 </tr>
90 </table>
91
92 {*CRM-14190*}
93 {include file="CRM/Group/Form/GroupsCommon.tpl"}
94
95 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
96 {if $action neq 1}
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}
100 <br />
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>
102 {/if}
103 </div>
104 {/if}
105
106 {literal}
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}
115 </script>
116 {/literal}
117 </div>