{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *}
{default_translation_domain domain='bo.default'}

{loop type="export" name="export" id=$exportId}
    {form name="thelia.export"}
        <form action="{$URL nofilter}" method="post" {form_enctype}>
            {form_hidden_fields}

            <div id="real-export-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="export-modal-label" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button class="close" type="button" data-dismiss="modal">
                                <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
                            </button>
                            <h4 id="export-modal-label" class="modal-title">
                                {intl l="Export"}&nbsp;: {$TITLE}
                            </h4>
                        </div>

                        <div class="modal-body">
                            {hook name="export.top" type="modal" id=$ID}

                            {include 'includes/export-form-body.html'}

                            {hook name="export.bottom" type="modal" id=$ID}
                        </div>

                        {ifloop rel="serializer"}
                            <div class="modal-footer">
                                <button class="btn btn-default" type="button" data-dismiss="modal">
                                    {intl l="Close"}
                                </button>
                                <button class="btn btn-primary" type="submit">
                                    {intl l="Do this export"}
                                </button>
                            </div>
                        {/ifloop}
                    </div>
                </div>
            </div>
        </form>
    {/form}
{/loop}
