[Vtigercrm-commits] [vtiger-commits] r5156 - /vtigercrm/trunk/Smarty/templates/DetailView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 17 11:29:06 EDT 2006
Author: saraj
Date: Mon Apr 17 09:29:02 2006
New Revision: 5156
Log:
new UI for convert lead has been integrated
Modified:
vtigercrm/trunk/Smarty/templates/DetailView.tpl
Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Mon Apr 17 09:29:02 2006
@@ -19,6 +19,25 @@
<a class="link" align="right" href="javascript:;">Edit</a>
</span>
+
+<div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
+<script>
+function ajaxSaveResponse(response)
+{ldelim}
+ document.getElementById("convertleaddiv").innerHTML=response.responseText;
+{rdelim}
+
+function callConvertLeadDiv(id)
+{ldelim}
+ var ajaxObj = new Ajax(ajaxSaveResponse);
+ var urlstring = "module=Leads&action=LeadsAjax&ajxaction=convertlead&record="+id;
+ ajaxObj.process("index.php?",urlstring);
+{rdelim}
+
+Calendar.setup ({ldelim}
+ inputField : "jscal_field", ifFormat : "{$CALENDAR_DATEFORMAT}", showsTime : false, button : "jscal_trigger", singleClick : true, step : 1
+ {rdelim});
+</script>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<form action="index.php" method="post" name="DetailView" id="form">
@@ -180,7 +199,7 @@
{/if}
{if $MODULE eq 'Leads'}
{if $CONVERTLEAD eq 'permitted'}
- <input title="{$APP.LBL_CONVERT_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERT_BUTTON_KEY}" class="small" onclick="this.form.return_module.value='{$MODULE}';this.form.module.value='{$MODULE}'; this.form.action.value='ConvertLead'" type="submit" name="Convert" value="{$APP.LBL_CONVERT_BUTTON_LABEL}">
+ <input title="{$APP.LBL_CONVERT_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERT_BUTTON_KEY}" class="small" onclick="callConvertLeadDiv('{$ID}');" type="submit" name="Convert" value="{$APP.LBL_CONVERT_BUTTON_LABEL}">
{/if}
{/if}
</td>
More information about the vtigercrm-commits
mailing list