{if $VTIGER_VERSION < "6.1.0"}
	{* Adding vtiger6 toggle left panel [start] *}
<script src="modules/{$moduleName}/assets/js/reset.js"></script>
{if $customizations.includejQuery}
	<script src="modules/{$moduleName}/assets/js/jquery/jquery-1.8.3.min.js"></script>
	<div id="toggleButton" class="toggleButton" title="Left Panel Show/Hide">
		<i id="tButtonImage" class="{if $LEFTPANELHIDE neq '1'}icon-chevron-left{else}icon-chevron-right{/if}"></i>
	</div>
	{* Adding vtiger6 toggle left panel [end] *}
{/if}
	<script type="text/javascript">
		jQuery.noConflict();
	</script>
{/if}

<script src="modules/{$moduleName}/assets/js/ractive/Ractive.min.js"></script>
<link href="modules/{$moduleName}/assets/css/{$moduleName}.css" rel="stylesheet" tye="text/css" media="all" />
<link href="modules/{$moduleName}/assets/css/ReportBuilder.css" rel="stylesheet" tye="text/css" media="all" />

<a class="ar-button" style="margin:20px 0 0 20px;" href="index.php?module={$moduleName}&view=List">Back to reports</a>
{include file="modules/$moduleName/ReportBuilder/templates.tpl"}

<div id="ar-report-builder"></div>

{literal}
<script>
//passed to reportBuilder
var reportBuilderOptions = {
	//lists of predefined elements
	types:{
		{/literal}
		reportTypes:{$reportTypes},
		relationTypes:{$relationTypes},
		moduleTypes:{$modules},
		modulesFieldTypes:{$modulesFields},
		categoryTypes:{$categories},
		manyToManyTypes:{$manyToManyConfig},
		{literal}
	},
	//internal attributes, server urls, server response
	{/literal}
	internal:{$internal},
	predefinedChildren:{$predefinedChildren},
	reportOptions:{$reportOptions},
	{literal}
};
</script>

{/literal}
<!-- env:dev --#>
<script src="modules/{$moduleName}/assets/js/components/reportBuilder.js"></script>
<!-- env:dev:end -->
<!-- env:prod -->
<script src="modules/{$moduleName}/assets/js/builder.min.js"></script>
<!-- env:prod:end -->
