{if $debug|@count>0}
<div class="alert alert-info alert-dismissable msg">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<ul>
	{foreach from=$debug item=data}
		<li>{$data}</li>
	{/foreach}
	</ul>
</div>
{/if}

{if $errors|@count>0}
<div class="alert alert-warning alert-dismissable msg">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<ul>
	{foreach from=$errors item=data}
		<li>{$data}</li>
	{/foreach}
	</ul>
</div>
{/if}

{if $success!=""}
<div class="alert alert-success alert-dismissable msg">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	{$success}
</div>
{/if}