Fix alert messages

This commit is contained in:
Némunaire 2013-10-10 05:13:45 +02:00
parent e89c4e3df5
commit ea27ea5855
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ function send_mail($to, $subject, $body)
return $mail->Send();
}
function erreur($message, $color = "error")
function erreur($message, $color="danger")
{
global $template;

View File

@ -22,9 +22,9 @@
</head>
<body>{block name=body}
{if $ERRmessage}
<div class="alert alert-{$ERRcolor}">
<button class="close" data-dismiss="alert">&times;</button>
<i class="icon-warning-sign"></i> {$ERRmessage}
<div class="alert alert-dismissable alert-{$ERRcolor}">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<span class="glyphicon glyphicon-warning-sign"></span> {$ERRmessage}
</div>
{/if}
{block name=content}{/block}