Merge pull request #11679 from jitendrapurohit/CRM-21776
[civicrm-core.git] / templates / CRM / Group / Form / Edit.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
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. |
12 | |
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. |
17 | |
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 +--------------------------------------------------------------------+
25*}
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">
f6eedce7 28 <div class="help">
6a488035 29 {if $action eq 2}
6f6d2baf
CW
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}
6a488035
TO
32 {else}
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}
34 {/if}
35 </div>
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}&nbsp;({ts}Smart Group{/ts}){/if}
42 </td>
43 </tr>
44
ce4c01ec 45 {if $group.created_by}
6a488035
TO
46 <tr class="crm-group-form-block-created">
47 <td class="label">{ts}Created By{/ts}</td>
ce4c01ec 48 <td>{$group.created_by}</td>
6a488035 49 </tr>
ce4c01ec 50 {/if}
6a488035 51
ce4c01ec 52 {if $group.modified_by}
d0dfb649
PJ
53 <tr class="crm-group-form-block-modified">
54 <td class="label">{ts}Modified By{/ts}</td>
ce4c01ec 55 <td>{$group.modified_by}</td>
d0dfb649 56 </tr>
ce4c01ec 57 {/if}
d0dfb649 58
6a488035
TO
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>
63 </td>
64 </tr>
65
66 {if $form.group_type}
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>
70 </tr>
71 {/if}
72
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>
76 </tr>
77
78 <tr class="crm-group-form-block-isReserved">
5db72c32 79 <td class="label">{$form.is_reserved.label}</td>
6a488035
TO
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>
82 </td>
83 </tr>
84
485105b1 85 <tr class="crm-group-form-block-isActive">
86 <td class="label">{$form.is_active.label}</td>
87 <td>{$form.is_active.html}</td>
88 </tr>
89
6a488035
TO
90 <tr>
91 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
92 </tr>
93 </table>
94
31c31c92 95 {*CRM-14190*}
d44e3aea 96 {include file="CRM/Group/Form/GroupsCommon.tpl"}
6a488035
TO
97
98 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
99 {if $action neq 1}
100 <div class="action-link">
07007817 101 <a {$crmURL}>&raquo; {ts}Contacts in this Group{/ts}</a>
6a488035
TO
102 {if $group.saved_search_id}
103 <br />
104 {if $group.mapping_id}
6f6d2baf 105 <a class="no-popup" href="{crmURL p="civicrm/contact/search/builder" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
6a488035 106 {elseif $group.search_custom_id}
6f6d2baf 107 <a class="no-popup" href="{crmURL p="civicrm/contact/search/custom" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
6a488035 108 {else}
6f6d2baf 109 <a class="no-popup" href="{crmURL p="civicrm/contact/search/advanced" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
6a488035
TO
110 {/if}
111
112 {/if}
113 </div>
114 {/if}
6a488035
TO
115
116{literal}
117<script type="text/javascript">
118{/literal}{if $freezeMailignList}{literal}
6f9cd76f 119cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailignList}{literal}]"]').prop('disabled',true);
6a488035
TO
120{/literal}{/if}{literal}
121{/literal}{if $hideMailignList}{literal}
122cj('input[type=checkbox][name="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
123cj('label[for="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
124{/literal}{/if}{literal}
6a488035
TO
125</script>
126{/literal}
127</div>