commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / ACL / Form / ACL.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 ACL *}
27 <div class="crm-block crm-form-block crm-acl-form-block">
28 {if $action eq 8}
29 <div class="messages status no-popup">
30 <div class="icon inform-icon"></div>&nbsp;
31 {ts}WARNING: Delete will remove this permission from the specified ACL Role.{/ts} {ts}Do you want to continue?{/ts}
32 </div>
33 {else}
34 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
35 <table class="form-layout-compressed">
36 <tr class="crm-acl-form-block-name">
37 <td class="label">{$form.name.label}</td>
38 <td>{$form.name.html}<br />
39 <span class="description">{ts}Enter a descriptive name for this permission (e.g. 'Edit Advisory Board Contacts').{/ts}</span>
40 </td>
41 </tr>
42 <tr class="crm-acl-form-block-entity_id">
43 <td class="label">{$form.entity_id.label}</td>
44 <td>{$form.entity_id.html}<br />
45 <span class="description">{ts}Select a Role to assign (grant) this permission to. Select the special role 'Everyone' if you want to grant this permission to ALL users. 'Everyone' includes anonymous (i.e. not logged in) users. Select the special role 'Authenticated' if you want to grant it to any logged in user.{/ts}</span>
46 </td>
47 </tr>
48 <tr class="crm-acl-form-block-operation">
49 <td class="label">{$form.operation.label}</td>
50 <td>{$form.operation.html}<br />
51 <span class="description">{ts}What type of operation (action) is being permitted?{/ts}</span>
52 </td>
53 </tr>
54 <tr class="crm-acl-form-block-object_type">
55 <td class="label">{$form.object_type.label}</td>
56 <td>{$form.object_type.html}</td>
57 </tr>
58 <tr class="crm-acl-form-block-description">
59 <td class="{$form.object_type.name}">&nbsp;</dt><td class="description">{ts}Select the type of data this ACL operates on.{/ts}<br />
60 {if $config->userSystem->is_drupal EQ '1'}
61 <div class="status description">{ts}IMPORTANT: The Drupal permissions for 'access all custom data' and 'profile listings and forms' override and disable specific ACL settings for custom field groups and profiles respectively. Do not enable those Drupal permissions for a Drupal role if you want to use CiviCRM ACL's to control access.{/ts}</div></td>
62 {/if}
63 </tr>
64 </table>
65 <div id="id-group-acl">
66 <table class="form-layout-compressed">
67 <tr class="crm-acl-form-block-group_id">
68 <td class="label">{$form.group_id.label}</td>
69 <td>{$form.group_id.html}<br />
70 <span class="description">{ts}Select a specific group of contacts, OR apply this permission to ALL groups.{/ts}</span>
71 </td>
72 </tr>
73 </table>
74 </div>
75 <div id="id-profile-acl">
76 <table class="form-layout-compressed" >
77 <tr class="crm-acl-form-block-uf_group_id">
78 <td class="label">{$form.uf_group_id.label}</td>
79 <td>{$form.uf_group_id.html}<br />
80 <span class="description">{ts}Select a specific profile, OR apply this permission to ALL profiles.{/ts}</span>
81 </td>
82 </tr>
83 </table>
84 <div class="status message">{ts}NOTE: Profile ACL operations affect which modes a profile can be used in (i.e. Create a new contact, Edit your own contact record, View a contact record, etc.). The Create operation is required for profiles embedded in online contribution or event registration forms. None of the operations for Profile ACLs grant access to administration of profiles.{/ts}</div>
85 </div>
86 <div id="id-custom-acl">
87 <table class="form-layout-compressed">
88 <tr class="crm-acl-form-block-custom_group_id">
89 <td class="label">{$form.custom_group_id.label}</td>
90 <td>{$form.custom_group_id.html}<br />
91 <span class="description">{ts}Select a specific group of custom fields, OR apply this permission to ALL custom fields.{/ts}</span>
92 </td>
93 </tr>
94 </table>
95 <div class="status message">{ts}NOTE: For Custom Data ACLs, the 'View' and 'Edit' operations currently do the same thing. Either option grants the right to view AND / OR edit custom data fields (in all groups, or in a specific custom data group). Neither option grants access to administration of custom data fields.{/ts}</div>
96 </div>
97 <div id="id-event-acl">
98 <table class="form-layout-compressed">
99 <tr class="crm-acl-form-block-event_id">
100 <td class="label">{$form.event_id.label}</td>
101 <td>{$form.event_id.html}<br />
102 <span class="description">{ts}Select an event, OR apply this permission to ALL events.{/ts}</span>
103 </td>
104 </tr>
105 </table>
106 <div class="status message">{ts}NOTE: For Event ACLs, the 'View' operation allows access to the event information screen. "Edit" allows users to register for the event if online registration is enabled.{/ts}<br />
107 {if $config->userSystem->is_drupal EQ '1'}
108 {ts}Please remember that Drupal's "register for events" permission overrides CiviCRM's control over event information access.{/ts}
109 {/if}
110 </div>
111 </div>
112 <table class="form-layout-compressed">
113 <tr class="crm-acl-form-block-is_active">
114 <td class="label">{$form.is_active.label}</td>
115 <td>{$form.is_active.html}</td>
116 </tr>
117 </table>
118 {/if}
119 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
120 </div>
121
122 {include file="CRM/common/showHide.tpl"}
123 {literal}
124 <script type="text/javascript">
125 showObjectSelect( );
126 function showObjectSelect( ) {
127 var ot = document.getElementsByName('object_type');
128 for (var i = 0; i < ot.length; i++) {
129 if ( ot[i].checked ) {
130 switch(ot[i].value) {
131 case "1":
132 cj('#id-group-acl').show();
133 cj('#id-profile-acl').hide();
134 cj('#id-custom-acl').hide();
135 cj('#id-event-acl').hide();
136 break;
137 case "2":
138 cj('#id-group-acl').hide();
139 cj('#id-profile-acl').show();
140 cj('#id-custom-acl').hide();
141 cj('#id-event-acl').hide();
142 break;
143 case "3":
144 cj('#id-group-acl').hide();
145 cj('#id-profile-acl').hide();
146 cj('#id-custom-acl').show();
147 cj('#id-event-acl').hide();
148 break;
149 case "4":
150 cj('#id-group-acl').hide();
151 cj('#id-profile-acl').hide();
152 cj('#id-custom-acl').hide();
153 cj('#id-event-acl').show();
154 break;
155 }
156 }
157 }
158 return;
159 }
160 </script>
161 {/literal}