Whitespace formatting in CRM/Group/Form/Edit.tpl
[civicrm-core.git] / templates / CRM / Group / Form / Edit.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
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">
158eb2c1
MWMC
28 <div class="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}
158eb2c1 32 {else}
6a488035 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}
158eb2c1
MWMC
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">
6a488035 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>
158eb2c1
MWMC
40 <td>{$form.title.html|crmAddClass:huge}
41 {if $group.saved_search_id}&nbsp;({ts}Smart Group{/ts}){/if}
42 </td>
43 </tr>
6a488035 44
158eb2c1
MWMC
45 {if $group.created_by}
46 <tr class="crm-group-form-block-created">
47 <td class="label">{ts}Created By{/ts}</td>
48 <td>{$group.created_by}</td>
49 </tr>
50 {/if}
6a488035 51
158eb2c1
MWMC
52 {if $group.modified_by}
53 <tr class="crm-group-form-block-modified">
54 <td class="label">{ts}Modified By{/ts}</td>
55 <td>{$group.modified_by}</td>
56 </tr>
57 {/if}
d0dfb649 58
158eb2c1 59 <tr class="crm-group-form-block-description">
6a488035
TO
60 <td class="label">{$form.description.label}</td>
61 <td>{$form.description.html}<br />
158eb2c1
MWMC
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>
6a488035 65
158eb2c1 66 {if $form.group_type}
6a488035 67 <tr class="crm-group-form-block-group_type">
158eb2c1
MWMC
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>
6a488035 70 </tr>
158eb2c1 71 {/if}
6a488035 72
158eb2c1 73 <tr class="crm-group-form-block-visibility">
6a488035
TO
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>
158eb2c1 76 </tr>
6a488035 77
158eb2c1
MWMC
78 <tr class="crm-group-form-block-isReserved">
79 <td class="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>
6a488035 84
158eb2c1
MWMC
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>
485105b1 89
158eb2c1 90 <tr>
6a488035 91 <td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td>
158eb2c1
MWMC
92 </tr>
93 </table>
6a488035 94
31c31c92 95 {*CRM-14190*}
d44e3aea 96 {include file="CRM/Group/Form/GroupsCommon.tpl"}
6a488035 97
158eb2c1
MWMC
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 102 {if $group.saved_search_id}
158eb2c1
MWMC
103 <br />
104 {if $group.mapping_id}
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>
106 {elseif $group.search_custom_id}
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>
108 {else}
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>
110 {/if}
6a488035
TO
111
112 {/if}
158eb2c1
MWMC
113 </div>
114 {/if}
6a488035 115
158eb2c1
MWMC
116 {literal}
117 <script type="text/javascript">
118 {/literal}{if $freezeMailignList}{literal}
119 cj('input[type=checkbox][name="group_type[{/literal}{$freezeMailignList}{literal}]"]').prop('disabled',true);
120 {/literal}{/if}{literal}
121 {/literal}{if $hideMailignList}{literal}
122 cj('input[type=checkbox][name="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
123 cj('label[for="group_type[{/literal}{$hideMailignList}{literal}]"]').hide();
124 {/literal}{/if}{literal}
125 </script>
126 {/literal}
6a488035 127</div>