<?php // Protection to avoid direct call of template
if (empty($conf) || ! is_object($conf))
{
    print "Error, template page can't be called as URL";
    exit;
}


print '
	<div class="modal fade" id="ea_errors" tabindex="-1" role="dialog" aria-labelledby="ea_errors_title" aria-hidden="true">
		<div class="modal-dialog modal-lg" role="document">
			<div class="modal-content">
				<div class="model-header bg-danger">
					<button type="button" class="close p-1" data-dismiss="modal" aria-hidden="true">&times;</button>
					<div class="d-flex justify-content-center">
						<span class="display-1 text-white">Ooops</span>
					</div>
				</div>

				<div class="modal-body m-0 py-4">
					';

foreach ($context->errors as $err)
{
	print '<blockquote class="blockquote m-0">'.$err.'</blockquote>';
}

print '				
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">$(function(){ $("#ea_errors").modal(); });</script>
';


$context->clearErrors();
