{extends file=$smarty.const.SMARTY_LAYOUT_OLD_MAIN_POPUP}

{block name="css"}
	<style type="text/css">@import url('_css/previewBalance.css');</style>
{/block}


{block name="onClosePopup" prepend}
	{$onLoadEvent}
{/block}


{block name="content"}

	{if !$closePopup}

		{$form->render()}

		<fieldset>
			<legend>{$_LANG.invoices.balanceCreate.tpls.previewLegend}</legend>

			{include file="index_balancePreview.tpl"}
		</fieldset>

		<br />

	{/if}

{/block}


{block name="buttons"}
	{$form->renderButton('close')}
	{$form->renderButton({$_LANG.invoices.balanceCreate.tpls.createButton})}
{/block}

