5. add to Edit/Create

This only needs to be done in VtigerCRM 5.40! It works out of the box in 6.x.

You could apply the Colors/Actions also to the EditView.

The following Modifications have to be done in multiple files, but are equal in every file!

  • Smarty/tempates/Inventory/InventoryCreateView.tpl
  • Smarty/templates/Inventory/InventoryEditView.tpl
  • Smarty/tempates/salesEditView.tpl
Insert at the end of the file
{include_php file='./modules/Colorizer/EditViewGenerator.php'}
{else}
<td colspan=4 class="detailedViewHeader">
<b>{$header}</b>
{/if}
</td>
</tr>
<!-- Handle the ui types display -->
{include file="DisplayFields.tpl"}
replace the complete block with
{else}
</table>
	  <table border=0 cellspacing=0 cellpadding=0 width=100% class="small" id="tbl{" "|str_replace:"":$header}Head">
	<td colspan=4 class="detailedViewHeader">
		<b>{$header}</b>
	{/if}
	</td>
	  </tr>
   </table>
	 <table border=0 cellspacing=0 cellpadding=0 width=100% class="small" id="tbl{" "|str_replace:"":$header}Content">
<!-- Handle the ui types display -->
{include file="DisplayFields.tpl"}
Enter your comment. Wiki syntax is allowed:
 __  __     __   __    ____     __
 \ \/ / __ / /  / /   / __/ __ / /
  \  / / // /  / /__ / _/  / // / 
  /_/  \___/  /____//_/    \___/