[Vtigercrm-commits] [vtiger-commits] r6452 - /vtigercrm/trunk/Smarty/templates/Header.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri May 26 08:14:32 EDT 2006


Author: saraj
Date: Fri May 26 06:14:29 2006
New Revision: 6452

Log:
Update Quick Create for single module selection - ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/Header.tpl

Modified: vtigercrm/trunk/Smarty/templates/Header.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Header.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Header.tpl Fri May 26 06:14:29 2006
@@ -71,12 +71,21 @@
 				{/if}
 			{/foreach}
 			<td style="padding-left:10px" nowrap>
-			
-				<select class=small style="width:120px" title="Create New" onchange="QCreate(this);">
-			{foreach  item=detail from=$QCMODULE}
-					<option value="{$detail.1}">{$APP[$detail.0]}</option>
-			{/foreach}
-				</select>
+			{if $CNT eq 1}
+                                <select class=small style="width:120px" title="Create New" onclick="QCreate(this);">
+                        {foreach  item=detail from=$QCMODULE}
+                                        <option value="{$detail.1}">{$APP[$detail.0]}</option>
+                        {/foreach}
+                                </select>
+                        {else}
+                                <select class=small style="width:120px" title="Create New" onchange="QCreate(this);">
+                        {foreach  item=detail from=$QCMODULE}
+                                        <option value="{$detail.1}">{$APP[$detail.0]}</option>
+                        {/foreach}
+                                </select>
+
+                        {/if}
+	
 			</td>
 		</tr>
 





More information about the vtigercrm-commits mailing list