[Vtigercrm-commits] [vtiger-commits] r5317 - /vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 03:34:22 EDT 2006
Author: don
Date: Tue Apr 25 01:34:13 2006
New Revision: 5317
Log:
Delete Option provided. Fixes #503
Modified:
vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl
Modified: vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl Tue Apr 25 01:34:13 2006
@@ -407,6 +407,10 @@
<tr>
<td colspan="2" align="center">
<input type="submit" value=" Edit " name="edit"/>
+ { if $PROFILEID != 1 && $PROFILEID != 2 && $PROFILEID != 3 && $PROFILEID != 4 }
+
+ <input type="button" value=" Delete " name="Delete" onClick="DeleteProfile('{$PROFILEID}')"/>
+ {/if}
<input type="button" value=" Cancel " name="Cancel" onClick="window.history.back();"/>
</td>
@@ -425,7 +429,25 @@
</td>
</tr>
</table>
+<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
+<div id="status" style="display:none;position:absolute;background-color:#bbbbbb;vertical-align:center;left:887px;top:0px;height:17px;">Processing Request...</div>
{include file='SettingsSubMenu.tpl'}
+
+<script>
+function ajaxSaveResponse(response)
+{ldelim}
+ hide("status");
+ document.getElementById("tempdiv").innerHTML=response.responseText;
+{rdelim}
+
+function DeleteProfile(profileid)
+{ldelim}
+ show("status");
+ var ajaxObj = new Ajax(ajaxSaveResponse);
+ var urlstring = "module=Users&action=UsersAjax&file=ProfileDeleteStep1&profileid="+profileid;
+ ajaxObj.process("index.php?",urlstring);
+{rdelim}
+</script>
<script language="javascript" type="text/javascript">
var Selected_div= 'global_privileges';
More information about the vtigercrm-commits
mailing list