Add TPL files
This commit is contained in:
69
modules/ACLRoles/DetailView.tpl
Executable file
69
modules/ACLRoles/DetailView.tpl
Executable file
@@ -0,0 +1,69 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<form action="index.php" method="post" name="DetailView" id="form">
|
||||
|
||||
<input type="hidden" name="module" value="ACLRoles">
|
||||
<input type="hidden" name="user_id" value="">
|
||||
<input type="hidden" name="record" value="{$ROLE.id}">
|
||||
<input type="hidden" name="isDuplicate" value=''>
|
||||
<input type='hidden' name='return_record' value='{$RETURN.record}'>
|
||||
<input type='hidden' name='return_action' value='{$RETURN.action}'>
|
||||
<input type='hidden' name='return_module' value='{$RETURN.module}'>
|
||||
<input type="hidden" name="action">
|
||||
|
||||
|
||||
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button primary" onclick="this.form.action.value='EditView'" type="submit" name="button" value=" {$APP.LBL_EDIT_BUTTON} "> <input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.isDuplicate.value='1'; this.form.action.value='EditView'" type="submit" name="button" value=" {$APP.LBL_DUPLICATE_BUTTON} "> <input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='ACLRoles'; this.form.return_action.value='index'; this.form.action.value='Delete'; return confirm('{$APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="button" value=" {$APP.LBL_DELETE_BUTTON} ">
|
||||
</form>
|
||||
</p>
|
||||
<p>
|
||||
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
|
||||
<TR>
|
||||
<td valign='top' width='15%' align='right'><b>{$MOD.LBL_NAME}:</b></td><td width='85%' colspan='3'>{$ROLE.name}</td>
|
||||
</tr
|
||||
><TR>
|
||||
<td valign='top' width='15%' align='right'><b>{$MOD.LBL_DESCRIPTION}:</b></td><td colspan='3' valign='top' width='85%' align='left'>{$ROLE.description | nl2br}</td>
|
||||
</tr></table>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
{include file="modules/ACLRoles/EditViewBody.tpl" }
|
||||
91
modules/ACLRoles/DetailViewBody.tpl
Executable file
91
modules/ACLRoles/DetailViewBody.tpl
Executable file
@@ -0,0 +1,91 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
|
||||
<TR>
|
||||
<td style="background: transparent;"></td>
|
||||
{foreach from=$ACTION_NAMES item="ACTION_NAME" }
|
||||
<td style="text-align: center;" scope="row"><b>{$ACTION_NAME}</b></td>
|
||||
{foreachelse}
|
||||
|
||||
<td colspan="2"> </td>
|
||||
|
||||
{/foreach}
|
||||
</TR>
|
||||
{foreach from=$CATEGORIES item="TYPES" key="CATEGORY_NAME"}
|
||||
|
||||
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]!='Users'}
|
||||
|
||||
|
||||
<TR>
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]=='Users'}
|
||||
<td nowrap width='1%' scope="row"><b>{$MOD.LBL_USER_NAME_FOR_ROLE}</b></td>
|
||||
{else}
|
||||
<td nowrap width='1%' scope="row"><b>{$APP_LIST.moduleList[$CATEGORY_NAME]}</b></td>
|
||||
{/if}
|
||||
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
|
||||
{assign var='ACTION_FIND' value='false'}
|
||||
{foreach from=$TYPES item="ACTIONS" key="TYPE_NAME"}
|
||||
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
|
||||
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
|
||||
{assign var='ACTION_FIND' value='true'}
|
||||
<td width='{$TDWIDTH}%' align='center'><div align='center' class="acl{$ACTION.accessLabel|capitalize}"><b>{$ACTION.accessName}</b></div></td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{if $ACTION_FIND=='false'}
|
||||
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
|
||||
<div><font color='red'>N/A</font></div>
|
||||
</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</TR>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{foreachelse}
|
||||
<tr> <td colspan="2">No Actions</td></tr>
|
||||
{/foreach}
|
||||
</TABLE>
|
||||
45
modules/ACLRoles/DetailViewUser.tpl
Executable file
45
modules/ACLRoles/DetailViewUser.tpl
Executable file
@@ -0,0 +1,45 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
|
||||
|
||||
{include file="modules/ACLRoles/DetailViewBody.tpl" }
|
||||
126
modules/ACLRoles/EditAllBody.tpl
Executable file
126
modules/ACLRoles/EditAllBody.tpl
Executable file
@@ -0,0 +1,126 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
*}
|
||||
<form method='POST' name='EditView' id='ACLEditView'>
|
||||
<input type='hidden' name='record' value='{$ROLE.id}'>
|
||||
<input type='hidden' name='module' value='ACLRoles'>
|
||||
<input type='hidden' name='action' value='Save'>
|
||||
<input type='hidden' name='return_record' value='{$RETURN.record}'>
|
||||
<input type='hidden' name='return_action' value='{$RETURN.action}'>
|
||||
<input type='hidden' name='return_module' value='{$RETURN.module}'>
|
||||
<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} " >
|
||||
<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");'>
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
|
||||
<TR>
|
||||
<td></td>
|
||||
|
||||
{foreach from=$ACTION_NAMES item="ACTION_NAME" }
|
||||
<td align='center'><div align='center'><b>{$ACTION_NAME}</b></div></td>
|
||||
{foreachelse}
|
||||
|
||||
<td colspan="2"> </td>
|
||||
|
||||
{/foreach}
|
||||
</TR>
|
||||
{literal}
|
||||
|
||||
{/literal}
|
||||
{foreach from=$CATEGORIES item="TYPES" key="CATEGORY_NAME"}
|
||||
|
||||
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]!='Users'}
|
||||
|
||||
<TR>
|
||||
<td nowrap width='1%'><b>
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]=='Users'}
|
||||
{$MOD.LBL_USER_NAME_FOR_ROLE}
|
||||
{elseif !empty($APP_LIST.moduleList[$CATEGORY_NAME])}
|
||||
{$APP_LIST.moduleList[$CATEGORY_NAME]}
|
||||
{else}
|
||||
{$CATEGORY_NAME}
|
||||
{/if}
|
||||
</b></td>
|
||||
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
|
||||
{assign var='ACTION_FIND' value='false'}
|
||||
{foreach from=$TYPES item="ACTIONS"}
|
||||
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
|
||||
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
|
||||
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
|
||||
<div style="display: none" id="{$ACTION.id}">
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]==$APP_LIST.moduleList.Users && $ACTION_LABEL !='Access Type'}
|
||||
<select DISABLED 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}');" >
|
||||
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
|
||||
</select>
|
||||
{else}
|
||||
<select 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}');" >
|
||||
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
|
||||
</select>
|
||||
{/if}
|
||||
</div>
|
||||
{if $ACTION.accessLabel == 'dev' || $ACTION.accessLabel == 'admin_dev'}
|
||||
<div class="aclAdmin" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
|
||||
{else}
|
||||
<div class="acl{$ACTION.accessName}" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
|
||||
{/if}
|
||||
</td>
|
||||
{assign var='ACTION_FIND' value='true'}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{if $ACTION_FIND=='false'}
|
||||
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
|
||||
<div><font color='red'>N/A</font></div>
|
||||
</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</TR>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{foreachelse}
|
||||
<tr> <td colspan="2">No Actions Defined</td></tr>
|
||||
{/foreach}
|
||||
</TABLE>
|
||||
<div style="padding-top:10px;">
|
||||
<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} " >
|
||||
<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");'>
|
||||
</div>
|
||||
</form>
|
||||
95
modules/ACLRoles/EditRole.tpl
Executable file
95
modules/ACLRoles/EditRole.tpl
Executable file
@@ -0,0 +1,95 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
*}
|
||||
<form method='POST' name='EditView' id='ACLEditView'>
|
||||
<input type='hidden' name='record' value='{$ROLE.id}'>
|
||||
<input type='hidden' name='module' value='ACLRoles'>
|
||||
<input type='hidden' name='action' value='Save'>
|
||||
<input type='hidden' name='return_record' value='{$RETURN.record}'>
|
||||
<input type='hidden' name='return_action' value='{$RETURN.action}'>
|
||||
<input type='hidden' name='return_module' value='{$RETURN.module}'>
|
||||
<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}" >
|
||||
<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");'>
|
||||
<br>
|
||||
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
|
||||
{if !empty($CATEGORIES[$CATEGORY_NAME])}
|
||||
<TR>
|
||||
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
|
||||
{foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
|
||||
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
|
||||
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
|
||||
<td align='center'><div align='center'><b>{$ACTION_LABEL}</b></div></td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{foreachelse}
|
||||
|
||||
<td colspan="2"> </td>
|
||||
|
||||
{/foreach}
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
|
||||
{foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
|
||||
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
|
||||
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
|
||||
<td nowrap width='{$TDWIDTH}%' style="text-align: center;" >
|
||||
<div style="display: none" id="{$ACTION.id}">
|
||||
{if $APP_LIST.moduleList[$CATEGORY_NAME]==$APP_LIST.moduleList.Users && $ACTION_LABEL !='Access Type'}
|
||||
<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}');" >
|
||||
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
|
||||
</select>
|
||||
{else}
|
||||
<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}');" >
|
||||
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
|
||||
</select>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="acl{$ACTION.accessName}" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
|
||||
</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{foreachelse}
|
||||
<td colspan="2"> </td>
|
||||
{/foreach}
|
||||
|
||||
</TR>
|
||||
{else}
|
||||
<tr> <td colspan="2">No Actions Defined</td></tr>
|
||||
{/if}
|
||||
</TABLE>
|
||||
84
modules/ACLRoles/EditView.tpl
Executable file
84
modules/ACLRoles/EditView.tpl
Executable file
@@ -0,0 +1,84 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<script>
|
||||
{literal}
|
||||
function set_focus(){
|
||||
document.getElementById('name').focus();
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<form method='POST' name='EditView' action='index.php'>
|
||||
<TABLE width='100%' border='0' cellpadding=0 cellspacing = 0 class="actionsContainer">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type='hidden' name='record' value='{$ROLE.id}'>
|
||||
<input type='hidden' name='module' value='ACLRoles'>
|
||||
<input type='hidden' name='action' value='Save'>
|
||||
<input type='hidden' name='isduplicate' value='{$ISDUPLICATE}'>
|
||||
<input type='hidden' name='return_record' value='{$RETURN.record}'>
|
||||
<input type='hidden' name='return_action' value='{$RETURN.action}'>
|
||||
<input type='hidden' name='return_module' value='{$RETURN.module}'>
|
||||
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id='save_button' accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="this.form.action.value='Save';return check_form('EditView');" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
|
||||
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" class='cancel_button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='submit' name='save' value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class='button' onclick='document.EditView.action.value="{$RETURN.action}";document.EditView.module.value="{$RETURN.module}";document.EditView.record.value="{$RETURN.record}";document.EditView.submit();'>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<TABLE width='100%' class="edit view" border='0' cellpadding=0 cellspacing = 0 >
|
||||
<TR>
|
||||
<td scope="row" align='right'>{$MOD.LBL_NAME}:<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td><td >
|
||||
<input id='name' name='name' type='text' value='{$ROLE.name}'>
|
||||
</td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row" align='right'>{$MOD.LBL_DESCRIPTION}:</td>
|
||||
<td ><textarea name='description' cols="80" rows="8">{$ROLE.description}</textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
addToValidate('EditView', 'name', 'varchar', true, '{$MOD.LBL_NAME}');
|
||||
</script>
|
||||
47
modules/ACLRoles/EditViewBody.tpl
Executable file
47
modules/ACLRoles/EditViewBody.tpl
Executable file
@@ -0,0 +1,47 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
*}
|
||||
<script src="modules/ACLRoles/ACLRoles.js"></script>
|
||||
<b>{$MOD.LBL_EDIT_VIEW_DIRECTIONS}</b>
|
||||
<table width='100%'><tr>
|
||||
<td width= '100%' valign='top'>
|
||||
<div id='category_data'>
|
||||
{include file='modules/ACLRoles/EditAllBody.tpl'}
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
76
modules/ACLRoles/popup.tpl
Executable file
76
modules/ACLRoles/popup.tpl
Executable file
@@ -0,0 +1,76 @@
|
||||
<!--
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
|
||||
********************************************************************************/
|
||||
-->
|
||||
|
||||
<script type="text/javascript" src="include/JSON.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/popup_helper.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
/* initialize the popup request from the parent */
|
||||
{literal}
|
||||
|
||||
{/literal}
|
||||
-->
|
||||
</script>
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
|
||||
|
||||
<tr height="20">
|
||||
<td scope="col" width="1%" >{$CHECKALL} </td>
|
||||
<td scope="col" width="20%" nowrap><slot>{$MOD.LBL_NAME}</slot></td>
|
||||
<td scope="col" width="10%" nowrap><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$ROLES item="ROLE"}
|
||||
|
||||
<tr height="20" >
|
||||
<td>{$PREROW} </td>
|
||||
<td valign=TOP ><slot><a href="#" onclick="send_back('Users','{$ROLE.id}');">{$ROLE.name}</a></slot></td>
|
||||
<td valign=TOP ><slot>{$ROLE.description}</slot></td>
|
||||
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="2">No Roles</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
{$ASSOCIATED_JAVASCRIPT_DATA}
|
||||
Reference in New Issue
Block a user