[Vtigercrm-commits] [vtiger-commits] r9341 - /vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Sep 7 04:10:13 EDT 2006
Author: saraj
Date: Thu Sep 7 02:10:08 2006
New Revision: 9341
Log:
changes made to do wordwrapping for description and multiselect combobox --Minnie
Modified:
vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl
Modified: vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailViewUI.tpl Thu Sep 7 02:10:08 2006
@@ -51,7 +51,13 @@
</div>
</td>
{elseif $keyid eq '33'}<!--Multi Select Combo box-->
- <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');"> <span id="dtlview_{$label}">{$keyval}</span>
+ <!--code given by Neil start Ref:http://forums.vtiger.com/viewtopic.php?p=31096#31096-->
+ {assign var="MULTISELECT_COMBO_BOX_ITEM_SEPARATOR_STRING" value=", "} {* Separates Multi-Select Combo Box items *}
+ {assign var="DETAILVIEW_WORDWRAP_WIDTH" value="70"} {* No. of chars for word wrapping long lines of Multi-Select Combo Box items *}
+ <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');"> <span id="dtlview_{$label}">
+ {$keyval|replace:$MULTISELECT_COMBO_BOX_ITEM_SEPARATOR_STRING:"\x1"|replace:" ":"\x0"|replace:"\x1":$MULTISELECT_COMBO_BOX_ITEM_SEPARATOR_STRING|wordwrap:$DETAILVIEW_WORDWRAP_WIDTH:"<br> "|replace:"\x0":" "}
+ </span>
+ <!--code given by Neil End-->
<div id="editarea_{$label}" style="display:none;">
<select MULTIPLE id="txtbox_{$label}" name="{$keyfldname}" size="4" style="width:160px;">
{foreach item=arr from=$keyoptions}
@@ -116,7 +122,11 @@
{if $label eq $MOD.LBL_ADD_COMMENT}
{assign var=keyval value=''}
{/if}
- <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');"> <span id="dtlview_{$label}">{$keyval}</span>
+ {assign var="DESCRIPTION_SEPARATOR_STRING" value=" "} {* Separates Description *}
+ {assign var="DESCRIPTION_WORDWRAP_WIDTH" value="70"} {* No. of chars for word wrapping long lines of Description *}
+ <td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');"> <span id="dtlview_{$label}">
+ {$keyval|replace:$DESCRIPTION_SEPARATOR_STRING:"\x1"|replace:" ":"\x0"|replace:"\x1":$DESCRIPTION_SEPARATOR_STRING|wordwrap:$DESCRIPTION_WORDWRAP_WIDTH:"<br> "|replace:"\x0":" "}
+ </span>
<div id="editarea_{$label}" style="display:none;">
<textarea id="txtbox_{$label}" name="{$keyfldname}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'"onBlur="this.className='detailedViewTextBox'" cols="90" rows="8">{$keyval}</textarea>
<br><input name="button_{$label}" type="button" class="crmbutton small save" value="{$APP.LBL_SAVE_LABEL}" onclick="dtlViewAjaxSave('{$label}','{$MODULE}',{$keyid},'{$keytblname}','{$keyfldname}','{$ID}');fnhide('crmspanid');"/> {$APP.LBL_OR}
More information about the vtigercrm-commits
mailing list