<div class="modal fade" id="modal{$name}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="modal{$name}Title">
                    {$title}
                </h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            </div>
            <div class="modal-body text-center w-hidden" id="modal{$name}Loader">
                <p><i class="fas fa-spinner fa-spin"></i> {lang key='loading'}</p>
            </div>
            <div class="modal-body" id="modal{$name}Body">
                {if isset($content)}
                    <p>{$content}</p>
                {/if}
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    {if isset($closeLabel)}
                        {$closeLabel}
                    {else}
                        {lang key='closewindow'}
                    {/if}
                </button>
                {if isset($submitAction)}
                    <button type="button" class="btn btn-primary" onclick="{$submitAction}">
                        {if isset($submitLabel)}
                            {$submitLabel}
                        {else}
                            {lang key='clientareasavechanges'}
                        {/if}
                    </button>
                {/if}
            </div>
        </div>
    </div>
</div>
