Merge pull request #23225 from braders/edit-group-nodefaults
[civicrm-core.git] / templates / CRM / Group / Form / Edit.tpl
CommitLineData
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 14 {capture assign=crmURL}class="no-popup" href="{crmURL p="civicrm/group/search" q="reset=1&force=1&context=smog&gid=`$group.id`"}"{/capture}
58625be8 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}
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 24 <td>{$form.title.html|crmAddClass:huge}
a46d6a12 25 {if !empty($group.saved_search_id)}&nbsp;({ts}Smart Group{/ts}){/if}
158eb2c1
MWMC
26 </td>
27 </tr>
6a488035 28
158eb2c1 29 <tr class="crm-group-form-block-description">
6a488035 30 <td class="label">{$form.description.label}</td>
be44418d
SL
31 <td>{$form.description.html}</td>
32 </tr>
33
3d40dbd3 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>
be44418d
SL
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}
a46d6a12 39 {if !empty($group.saved_search_id)}&nbsp;({ts}Smart Group{/ts}){/if}
158eb2c1
MWMC
40 </td>
41 </tr>
6a488035 42
be44418d
SL
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
633ce286 48 {if !empty($form.group_type)}
6a488035 49 <tr class="crm-group-form-block-group_type">
158eb2c1
MWMC
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>
6a488035 52 </tr>
158eb2c1 53 {/if}
6a488035 54
158eb2c1 55 <tr class="crm-group-form-block-visibility">
6a488035
TO
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>
158eb2c1 58 </tr>
6a488035 59
158eb2c1
MWMC
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>
6a488035 66
158eb2c1
MWMC
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>
485105b1 71
a46d6a12 72 {if !empty($group.created_by)}
be44418d
SL
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
a46d6a12 79 {if !empty($group.modified_by)}
be44418d
SL
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
158eb2c1 87 <tr>
6a488035 88 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
158eb2c1
MWMC
89 </tr>
90 </table>
6a488035 91
31c31c92 92 {*CRM-14190*}
d44e3aea 93 {include file="CRM/Group/Form/GroupsCommon.tpl"}
6a488035 94
158eb2c1
MWMC
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">
58625be8 98 <a {$crmURL|smarty:nodefaults}><i class="crm-i fa-users" aria-hidden="true"></i> {ts}Contacts in this Group{/ts}</a>
4cb27797 99 {if $editSmartGroupURL}
158eb2c1 100 <br />
58625be8 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>
6a488035 102 {/if}
158eb2c1
MWMC
103 </div>
104 {/if}
6a488035 105
158eb2c1
MWMC
106 {literal}
107 <script type="text/javascript">
a46d6a12 108 {/literal}{if !empty($freezeMailingList)}{literal}
4392f2a0 109 cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailingList}{literal}]"]').prop('disabled',true);
158eb2c1 110 {/literal}{/if}{literal}
a46d6a12 111 {/literal}{if !empty($hideMailingList)}{literal}
4392f2a0
JF
112 cj('input[type=checkbox][name="group_type[{/literal}{$hideMailingList}{literal}]"]').hide();
113 cj('label[for="group_type[{/literal}{$hideMailingList}{literal}]"]').hide();
158eb2c1
MWMC
114 {/literal}{/if}{literal}
115 </script>
116 {/literal}
6a488035 117</div>