{extends file=$smarty.const.SMARTY_LAYOUT_OLD_MAIN_POPUP}

{block name="onClosePopup" append}
	if (window.parent.opener && window.parent.opener.document.fire) {
		window.parent.opener.document.fire('document:pageRefresh', {
			'module': null,
			'action': null,
			'windowName': window.name,
			'execOutput': {$execOutput|json_encode}
		});
	}
{/block}

{block name="content"}
	{if $form}
		{$form->render()}
	{/if}
{/block}

{block name="buttons"}
	{if $form}
		{$form->renderButton('close')}
	{/if}

	{block name="button_submit"}
		{if $form}
			{$form->renderButton('save')}
		{/if}
	{/block}
{/block}

