{extends file=$smarty.const.SMARTY_LAYOUT_MAIN_POPUP_FORM}

{block name="template-head" append}
    {$CSS->loadGroup("listing")}
{/block}

{block name="css" append}
    {$CSS->load("{asset path="_css/balancePreview.css"}")}
{/block}

{block name="popupContent" append}

    {if !$closePopup}
        <div class="engine-listing-container" style="margin-bottom: 10px;">
            <fieldset class="default visibleGroup-0 " id="form_viewBalance">
                <legend class="non-collapsible">
                    <div>{$lang['index']['fieldset']['viewBalance']}</div>
                </legend>
            </fieldset>

            {include file="balancePreview.tpl"}

        </div>
    {/if}

{/block}

{block name="js" append}
    <script type="text/javascript">
        MVC.scheduleOnLoad(function(){
            {if !$closePopup && $autoSubmit}
                $('form_').submit();
            {/if}
        });
    </script>
{/block}