Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<div class = "quickPreview">
<input type="hidden" name="sourceModuleName" id="sourceModuleName" value="{$MODULE_NAME}" />
<input type="hidden" id = "nextRecordId" value ="{$NEXT_RECORD_ID}">
<input type="hidden" id = "previousRecordId" value ="{$PREVIOUS_RECORD_ID}">
<div class='quick-preview-modal modal-content'>
<div class='modal-body'>
<div class = "quickPreviewModuleHeader row">
<div class = "col-lg-10">
<div class="row qp-heading">
{include file="ListViewQuickPreviewHeaderTitle.tpl"|vtemplate_path:$MODULE_NAME MODULE_MODEL=$MODULE_MODEL RECORD=$RECORD}
</div>
</div>
<div class = "col-lg-2 pull-right">
<button class="close" aria-hidden="true" data-dismiss="modal" type="button" title="{vtranslate('LBL_CLOSE')}">x</button>
</div>
</div>
<div class="quickPreviewActions clearfix">
<div class="btn-group pull-left">
<button class="btn btn-success btn-xs" onclick="window.location.href = '{$RECORD->getFullDetailViewUrl()}&app={$SELECTED_MENU_CATEGORY}'">
{vtranslate('LBL_VIEW_DETAILS', $MODULE_NAME)}
</button>
</div>
{if $NAVIGATION}
<div class="btn-group pull-right">
<button class="btn btn-default btn-xs" id="quickPreviewPreviousRecordButton" data-record="{$PREVIOUS_RECORD_ID}" data-app="{$SELECTED_MENU_CATEGORY}" {if empty($PREVIOUS_RECORD_ID)} disabled="disabled" {*{else} onclick="Vtiger_List_Js.triggerPreviewForRecord({$PREVIOUS_RECORD_ID})"*}{/if} >
<i class="fa fa-chevron-left"></i>
</button>
<button class="btn btn-default btn-xs" id="quickPreviewNextRecordButton" data-record="{$NEXT_RECORD_ID}" data-app="{$SELECTED_MENU_CATEGORY}" {if empty($NEXT_RECORD_ID)} disabled="disabled" {*{else} onclick="Vtiger_List_Js.triggerPreviewForRecord({$NEXT_RECORD_ID})"*}{/if}>
<i class="fa fa-chevron-right"></i>
</button>
</div>
{/if}
</div>
<div class = "quickPreviewSummary">
<table class="summary-table no-border" style="width:100%;">
<tbody>
{foreach item=FIELD_MODEL key=FIELD_NAME from=$SUMMARY_RECORD_STRUCTURE['SUMMARY_FIELDS']}
{if $FIELD_MODEL->get('name') neq 'modifiedtime' && $FIELD_MODEL->get('name') neq 'createdtime'}
<tr class="summaryViewEntries">
<td class="fieldLabel col-lg-5" ><label class="muted">{vtranslate($FIELD_MODEL->get('label'),$MODULE_NAME)}</label></td>
<td class="fieldValue col-lg-7">
<div class="row">
<span class="value textOverflowEllipsis" {if $FIELD_MODEL->get('uitype') eq '19' or $FIELD_MODEL->get('uitype') eq '20' or $FIELD_MODEL->get('uitype') eq '21'}style="word-wrap: break-word;"{/if}>
{include file=$FIELD_MODEL->getUITypeModel()->getDetailViewTemplateName()|@vtemplate_path:$MODULE_NAME FIELD_MODEL=$FIELD_MODEL USER_MODEL=$USER_MODEL MODULE=$MODULE_NAME RECORD=$RECORD}
</span>
</div>
</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
<div class="engagementsContainer">
{include file="ListViewQuickPreviewSectionHeader.tpl"|vtemplate_path:$MODULE_NAME TITLE="{vtranslate('LBL_UPDATES',$MODULE_NAME)}"}
{include file="RecentActivities.tpl"|vtemplate_path:$MODULE_NAME}
</div>
<br>
{if $MODULE_MODEL->isCommentEnabled() && $MODULE_NAME neq 'Cases'}
<div class="quickPreviewComments">
{include file="ListViewQuickPreviewSectionHeader.tpl"|vtemplate_path:$MODULE_NAME TITLE="{vtranslate('LBL_RECENT_COMMENTS',$MODULE_NAME)}"}
{include file="QuickViewCommentsList.tpl"|vtemplate_path:$MODULE_NAME}
</div>
{/if}
</div>
</div>
</div>