[Vtigercrm-commits] [vtiger-commits] r6757 - in /vtigercrm/trunk/Smarty/templates: DetailView.tpl DetailViewUI.tpl Inventory/InventoryDetailView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 30 10:22:24 EDT 2006
Author: saraj
Date: Tue May 30 08:22:19 2006
New Revision: 6757
Log:
* Modified to display the $ symbol with the label instead of display with the text value for the fields leads,accounts-annualrevenue, potential-amount and unit_price-product
Modified:
vtigercrm/trunk/Smarty/templates/DetailView.tpl
vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl
vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Tue May 30 08:22:19 2006
@@ -214,11 +214,13 @@
<input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>
{if $label ne ''}
- {if $keycntimage ne ''}
- <td class="dvtCellLabel" align=right width=25%>{$keycntimage}</td>
- {else}
- <td class="dvtCellLabel" align=right width=25%>{$label}</td>
- {/if}
+ {if $keycntimage ne ''}
+ <td class="dvtCellLabel" align=right width=25%>{$keycntimage}</td>
+ {elseif $keyid eq '71' || $keyid eq '72'}<!-- Currency symbol -->
+ <td class="dvtCellLabel" align=right width=25%>{$label} ({$keycursymb})</td>
+ {else}
+ <td class="dvtCellLabel" align=right width=25%>{$label}</td>
+ {/if}
{include file="DetailViewUI.tpl"}
{else}
Modified: vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl Tue May 30 08:22:19 2006
@@ -1,18 +1,33 @@
- {if $keyid eq '1' || $keyid eq 2 || $keyid eq '11' || $keyid eq '7' || $keyid eq '9' || $keyid eq '55' || $keyid eq '71' || $keyid eq '72'} <!--TextBox-->
- <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" >
- {if $keyid eq '55'}<!--SalutationSymbol-->
- {$keysalut}
- {elseif $keyid eq '71' || $keyid eq '72'} <!--CurrencySymbol-->
- {$keycursymb}
- {/if}
- <div id="dtlview_{$label}" onClick="hndMouseOver({$keyid},'{$label}');">{$keyval} </div>
- <div id="editarea_{$label}" style="display:none;">
- <input class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" type="text" id="txtbox_{$label}" name="{$keyfldname}" maxlength='100' value="{$keyval}"></input>
- <br><input name="button_{$label}" type="button" class="small" value="Save" onclick="dtlViewAjaxSave('{$label}','{$MODULE}',{$keyid},'{$keytblname}','{$keyfldname}','{$ID}');"/> or
- <a href="javascript:;" onclick="hndCancel('dtlview_{$label}','editarea_{$label}','{$label}')" class="link">Cancel</a>
- </div>
- </td>
- {elseif $keyid eq '13'} <!--Email-->
+{*<!--
+
+/*********************************************************************************
+** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+*
+ ********************************************************************************/
+
+-->*}
+
+<!-- This file is used to display the fields based on the ui type in detailview -->
+{if $keyid eq '1' || $keyid eq 2 || $keyid eq '11' || $keyid eq '7' || $keyid eq '9' || $keyid eq '55' || $keyid eq '71' || $keyid eq '72'} <!--TextBox-->
+ <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" >
+ {if $keyid eq '55'}<!--SalutationSymbol-->
+ {$keysalut}
+ {/if}
+
+ <div id="dtlview_{$label}" onClick="hndMouseOver({$keyid},'{$label}');">{$keyval} </div>
+ <div id="editarea_{$label}" style="display:none;">
+ <input class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" type="text" id="txtbox_{$label}" name="{$keyfldname}" maxlength='100' value="{$keyval}"></input>
+ <br>
+ <input name="button_{$label}" type="button" class="small" value="Save" onclick="dtlViewAjaxSave('{$label}','{$MODULE}',{$keyid},'{$keytblname}','{$keyfldname}','{$ID}');"/> or
+ <a href="javascript:;" onclick="hndCancel('dtlview_{$label}','editarea_{$label}','{$label}')" class="link">Cancel</a>
+ </div>
+ </td>
+{elseif $keyid eq '13'} <!--Email-->
<td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}"><div id="dtlview_{$label}" onClick="hndMouseOver({$keyid},'{$label}');">
{if $INT_MAILER eq 'true'}
<a href="javascript:InternalMailer('{$keyval}','email_addy');"> {$keyval}</a></div>
Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl Tue May 30 08:22:19 2006
@@ -174,7 +174,11 @@
{if $keycntimage ne ''}
<td class="dvtCellLabel" align=right width=25%>{$keycntimage}</td>
{elseif $label neq 'Tax Class'}<!-- Avoid to display the label Tax Class -->
- <td class="dvtCellLabel" align=right width=25%>{$label}</td>
+ {if $keyid eq '71' || $keyid eq '72'} <!--CurrencySymbol-->
+ <td class="dvtCellLabel" align=right width=25%>{$label} ({$keycursymb})</td>
+ {else}
+ <td class="dvtCellLabel" align=right width=25%>{$label}</td>
+ {/if}
{/if}
{include file="DetailViewUI.tpl"}
{else}
More information about the vtigercrm-commits
mailing list