Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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"> | |
28 | <div id="help"> | |
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} ({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"> | |
79 | <td class="report-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> | |
82 | </td> | |
83 | </tr> | |
84 | ||
85 | <tr> | |
86 | <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td> | |
87 | </tr> | |
88 | </table> | |
89 | ||
31c31c92 BS |
90 | {*CRM-14190*} |
91 | {include file="CRM/Group/Form/ParentGroups.tpl"} | |
6a488035 | 92 | |
532e9275 | 93 | {if $form.organization_id} |
6a488035 TO |
94 | <h3>{ts}Associated Organization{/ts} {help id="id-group-organization" file="CRM/Group/Page/Group.hlp"}</h3> |
95 | <table class="form-layout-compressed"> | |
96 | <tr class="crm-group-form-block-organization"> | |
532e9275 CW |
97 | <td class="label"> {$form.organization_id.label}</td> |
98 | <td>{$form.organization_id.html|crmAddClass:huge} | |
6a488035 TO |
99 | </td> |
100 | </tr> | |
101 | </table> | |
102 | {/if} | |
103 | ||
104 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
105 | {if $action neq 1} | |
106 | <div class="action-link"> | |
07007817 | 107 | <a {$crmURL}>» {ts}Contacts in this Group{/ts}</a> |
6a488035 TO |
108 | {if $group.saved_search_id} |
109 | <br /> | |
110 | {if $group.mapping_id} | |
6f6d2baf | 111 | <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> |
6a488035 | 112 | {elseif $group.search_custom_id} |
6f6d2baf | 113 | <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> |
6a488035 | 114 | {else} |
6f6d2baf | 115 | <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> |
6a488035 TO |
116 | {/if} |
117 | ||
118 | {/if} | |
119 | </div> | |
120 | {/if} | |
121 | </fieldset> | |
122 | ||
123 | {literal} | |
124 | <script type="text/javascript"> | |
125 | {/literal}{if $freezeMailignList}{literal} | |
6f9cd76f | 126 | cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailignList}{literal}]"]').prop('disabled',true); |
6a488035 TO |
127 | {/literal}{/if}{literal} |
128 | {/literal}{if $hideMailignList}{literal} | |
129 | cj('input[type=checkbox][name="group_type[{/literal}{$hideMailignList}{literal}]"]').hide(); | |
130 | cj('label[for="group_type[{/literal}{$hideMailignList}{literal}]"]').hide(); | |
131 | {/literal}{/if}{literal} | |
6a488035 TO |
132 | </script> |
133 | {/literal} | |
134 | </div> |