Files
CRM/layouts/vlayout/modules/Potentials/SummaryViewWidgets.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

163 lines
6.5 KiB
Smarty

{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
{strip}
{foreach item=DETAIL_VIEW_WIDGET from=$DETAILVIEW_LINKS['DETAILVIEWWIDGET']}
{if ($DETAIL_VIEW_WIDGET->getLabel() eq 'Documents') }
{assign var=DOCUMENT_WIDGET_MODEL value=$DETAIL_VIEW_WIDGET}
{elseif ($DETAIL_VIEW_WIDGET->getLabel() eq 'LBL_RELATED_CONTACTS')}
{assign var=CONTACT_WIDGET_MODEL value=$DETAIL_VIEW_WIDGET}
{elseif ($DETAIL_VIEW_WIDGET->getLabel() eq 'LBL_RELATED_PRODUCTS')}
{assign var=PRODUCT_WIDGET_MODEL value=$DETAIL_VIEW_WIDGET}
{elseif ($DETAIL_VIEW_WIDGET->getLabel() eq 'ModComments')}
{assign var=COMMENTS_WIDGET_MODEL value=$DETAIL_VIEW_WIDGET}
{elseif ($DETAIL_VIEW_WIDGET->getLabel() eq 'LBL_UPDATES')}
{assign var=UPDATES_WIDGET_MODEL value=$DETAIL_VIEW_WIDGET}
{/if}
{/foreach}
<div class="row-fluid">
<div class="span7">
{* Module Summary View*}
<div class="summaryView row-fluid">
{$MODULE_SUMMARY}
</div>
{* Module Summary View Ends Here*}
{* Summary View Comments Widget*}
{if $COMMENTS_WIDGET_MODEL}
<div class="summaryWidgetContainer">
<div class="widgetContainer_comments" data-url="{$COMMENTS_WIDGET_MODEL->getUrl()}" data-name="{$COMMENTS_WIDGET_MODEL->getLabel()}">
<div class="widget_header row-fluid">
<input type="hidden" name="relatedModule" value="{$COMMENTS_WIDGET_MODEL->get('linkName')}" />
<span class="span9 margin0px"><h4>{vtranslate($COMMENTS_WIDGET_MODEL->getLabel(),$MODULE_NAME)}</h4></span>
<span class="span3">
<span class="pull-right">
{if $COMMENTS_WIDGET_MODEL->get('action')}
<button class="btn addButton createRecord" type="button" data-url="{$COMMENTS_WIDGET_MODEL->get('actionURL')}">
<strong>{vtranslate('LBL_ADD',$MODULE_NAME)}</strong>
</button>
{/if}
</span>
</span>
</div>
<div class="widget_contents">
</div>
</div>
</div>
{/if}
{* Summary View Comments Widget Ends Here *}
{* Summary View Products Widget*}
{if $PRODUCT_WIDGET_MODEL}
<div class="summaryWidgetContainer">
<div class="widgetContainer_products" data-url="{$PRODUCT_WIDGET_MODEL->getUrl()}" data-name="{$PRODUCT_WIDGET_MODEL->getLabel()}">
<div class="widget_header row-fluid">
<input type="hidden" name="relatedModule" value="{$PRODUCT_WIDGET_MODEL->get('linkName')}" />
<span class="span9 margin0px"><h4>{vtranslate($PRODUCT_WIDGET_MODEL->getLabel(),$MODULE_NAME)}</h4></span>
<span class="span3">
<span class="pull-right">
{if $PRODUCT_WIDGET_MODEL->get('action')}
<button class="btn addButton createRecord" type="button" data-url="{$PRODUCT_WIDGET_MODEL->get('actionURL')}">
<strong>{vtranslate('LBL_ADD',$MODULE_NAME)}</strong>
</button>
{/if}
</span>
</span>
</div>
<div class="widget_contents">
</div>
</div>
</div>
{/if}
{* Summary View Products Widget Ends Here*}
</div>
<div class='span5' style="overflow: hidden">
{* Summary View Related Activities Widget *}
<div id="relatedActivities">
{$RELATED_ACTIVITIES}
</div>
{* Summary View Related Activities Widget Ends Here *}
{* Summary View Contacts Widget *}
{if $CONTACT_WIDGET_MODEL}
<div class="summaryWidgetContainer">
<div class="widgetContainer_contacts" data-url="{$CONTACT_WIDGET_MODEL->getUrl()}" data-name="{$CONTACT_WIDGET_MODEL->getLabel()}">
<div class="widget_header row-fluid">
<input type="hidden" name="relatedModule" value="{$CONTACT_WIDGET_MODEL->get('linkName')}" />
<span class="span9 margin0px"><h4>{vtranslate($CONTACT_WIDGET_MODEL->getLabel(),$MODULE_NAME)}</h4></span>
<span class="span3">
<span class="pull-right">
{if $CONTACT_WIDGET_MODEL->get('action')}
<button class="btn addButton createRecord" type="button" data-url="{$CONTACT_WIDGET_MODEL->get('actionURL')}">
<strong>{vtranslate('LBL_ADD',$MODULE_NAME)}</strong>
</button>
{/if}
</span>
</span>
</div>
<div class="widget_contents">
</div>
</div>
</div>
{/if}
{* Summary View Contacts Widget Ends Here *}
{* Summary View Documents Widget*}
{if $DOCUMENT_WIDGET_MODEL}
<div class="summaryWidgetContainer">
<div class="widgetContainer_documents" data-url="{$DOCUMENT_WIDGET_MODEL->getUrl()}" data-name="{$DOCUMENT_WIDGET_MODEL->getLabel()}">
<div class="widget_header row-fluid">
<input type="hidden" name="relatedModule" value="{$DOCUMENT_WIDGET_MODEL->get('linkName')}" />
<span class="span9 margin0px"><h4>{vtranslate($DOCUMENT_WIDGET_MODEL->getLabel(),$MODULE_NAME)}</h4></span>
<span class="span3">
<span class="pull-right">
{if $DOCUMENT_WIDGET_MODEL->get('action')}
<button class="btn pull-right addButton createRecord" type="button" data-url="{$DOCUMENT_WIDGET_MODEL->get('actionURL')}">
<strong>{vtranslate('LBL_ADD',$MODULE_NAME)}</strong>
</button>
{/if}
</span>
</span>
</div>
<div class="widget_contents">
</div>
</div>
</div>
{/if}
{* Summary View Documents Widget Ends Here *}
{* Summary View Updates Widget *}
{if $UPDATES_WIDGET_MODEL}
<div class="summaryWidgetContainer">
<div class="widgetContainer_updates" data-url="{$UPDATES_WIDGET_MODEL->getUrl()}" data-name="{$UPDATES_WIDGET_MODEL->getLabel()}">
<div class="widget_header row-fluid">
<input type="hidden" name="relatedModule" value="{$UPDATES_WIDGET_MODEL->get('linkName')}" />
<span class="span9 margin0px"><h4>{vtranslate($UPDATES_WIDGET_MODEL->getLabel(),$MODULE_NAME)}</h4></span>
<span class="span3">
<span class="pull-right">
{if $UPDATES_WIDGET_MODEL->get('action')}
<button class="btn pull-right addButton createRecord" type="button" data-url="{$UPDATES_WIDGET_MODEL->get('actionURL')}">
<strong>{vtranslate('LBL_ADD',$MODULE_NAME)}</strong>
</button>
{/if}
</span>
</span>
</div>
<div class="widget_contents">
</div>
</div>
</div>
{/if}
{* Summary View Updates Widget Ends Here *}
</div>
</div>
{/strip}