Merge pull request #16006 from demeritcowboy/case-role-manager-api
[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
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}&nbsp;({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">
07007817 85 <a {$crmURL}>&raquo; {ts}Contacts in this Group{/ts}</a>
6a488035 86 {if $group.saved_search_id}
158eb2c1
MWMC
87 <br />
88 {if $group.mapping_id}
6a87c0cb 89 <a class="no-popup" href="{crmURL p="civicrm/contact/search/builder" q="reset=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
158eb2c1 90 {elseif $group.search_custom_id}
6a87c0cb 91 <a class="no-popup" href="{crmURL p="civicrm/contact/search/custom" q="reset=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
158eb2c1 92 {else}
6a87c0cb 93 <a class="no-popup" href="{crmURL p="civicrm/contact/search/advanced" q="reset=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
158eb2c1 94 {/if}
6a488035
TO
95
96 {/if}
158eb2c1
MWMC
97 </div>
98 {/if}
6a488035 99
158eb2c1
MWMC
100 {literal}
101 <script type="text/javascript">
102 {/literal}{if $freezeMailignList}{literal}
103 cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailignList}{literal}]"]').prop('disabled',true);
104 {/literal}{/if}{literal}
105 {/literal}{if $hideMailignList}{literal}
106 cj('input[type=checkbox][name="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
107 cj('label[for="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
108 {/literal}{/if}{literal}
109 </script>
110 {/literal}
6a488035 111</div>