]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/ACLRoles/EditRole.tpl
Release 6.5.0
[Github/sugarcrm.git] / modules / ACLRoles / EditRole.tpl
1 {*
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 *}
38 <form method='POST' name='EditView' id='ACLEditView'>
39 <input type='hidden' name='record' value='{$ROLE.id}'>
40 <input type='hidden' name='module' value='ACLRoles'>
41 <input type='hidden' name='action' value='Save'>
42 <input type='hidden' name='return_record' value='{$RETURN.record}'>
43 <input type='hidden' name='return_action' value='{$RETURN.action}'>
44 <input type='hidden' name='return_module' value='{$RETURN.module}'>
45 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';aclviewer.save('ACLEditView');return false;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" > &nbsp;
46 <input title="{$APP.LBL_CANCEL_BUTTON_TITLE}"   class='button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='button' name='save' value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class='button' onclick='aclviewer.view("{$ROLE.id}", "All");'>
47 <br>
48 <TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1  >
49 {if !empty($CATEGORIES[$CATEGORY_NAME])}
50         <TR>
51         {foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
52                 {foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
53                         {foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
54                                 {if $ACTION_NAME==$ACTION_NAME_ACTIVE}
55                                         <td align='center'><div align='center'><b>{$ACTION_LABEL}</b></div></td>
56                                 {/if}
57                         {/foreach}
58                 {/foreach}
59         {foreachelse}
60         
61                   <td colspan="2">&nbsp;</td>
62         
63         {/foreach}
64         </TR>
65         
66         <TR>
67         {foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
68             {foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
69                 {foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
70                     {if $ACTION_NAME==$ACTION_NAME_ACTIVE}      
71                                         <td nowrap width='{$TDWIDTH}%' style="text-align: center;" >
72                                         <div  style="display: none" id="{$ACTION.id}">
73                                         {if $APP_LIST.moduleList[$CATEGORY_NAME]==$APP_LIST.moduleList.Users && $ACTION_LABEL != $MOD.LBL_ACTION_ADMIN}
74                                         <select DISABLED class="acl{$ACTION.accessName}" name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
75                                                 {html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
76                                         </select>
77                                         {else}
78                     <select class="acl{$ACTION.accessName}" name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
79                         {html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
80                     </select>                                   
81                                         {/if}
82                                         </div>
83                                         <div class="acl{$ACTION.accessName}"  id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
84                                         </td>
85                     {/if}
86                 {/foreach}
87             {/foreach}
88         {foreachelse}
89                   <td colspan="2">&nbsp;</td>
90         {/foreach}
91         
92         </TR>
93 {else}
94     <tr> <td colspan="2">No Actions Defined</td></tr>
95 {/if}
96 </TABLE>