Thibault GUILLAUME f2c577864a recette
2015-10-14 14:43:03 +02:00

54 lines
2.1 KiB
Smarty

<section class="comments">
<p class="title">{l s='Commentaires' mod='cms_comments'}</p>
<div class="list_comments">
{if count($comments)}
{foreach from=$comments key=k item=comment}
<div class="row inner">
<div class="col-md-8 name">
{$comment.name}
</div>
<div class="col-md-4 date">
{l s='Le' mod='cms_comments'} {$comment.date_add|date_format:"%d/%m/%Y"}
</div>
<div class="col-md-12 comment">
{$comment.comments}
</div>
</div>
{/foreach}
{else}
<p>{l s='Aucun commentaire' mod='cms_comments'}</p>
{/if}
</div>
<div class="form_comment">
<p class="title">{l s='Laisser un commentaire' mod='cms_comments'}</p>
<form action="/" method="POST" id="comments">
<input type="hidden" name="id_element" value="{$id_element}">
<div class="row">
<div class="form-group name_comments col-sm-6">
<label for="name">{l s='Votre nom' mod='cms_comments'} <sup>*</sup></label>
<input type="text" class="form-control" id="name" name="name">
</div>
<div class="form-group email_comments col-sm-6">
<label for="email">{l s='Votre adresse email' mod='cms_comments'} <sup>*</sup></label>
<input type="text" class="form-control" id="email" name="email">
</div>
</div>
<div class="form-group">
<label for="comments_content">{l s='Votre commentaire' mod='cms_comments'} <sup>*</sup></label>
<textarea name="comments" class="form-control" id="comments_content" cols="100" rows="4"></textarea>
</div>
<div class="form-inline">
<input type="checkbox" id="offre_comments" name="offre">
<label for="offre_comments">{l s='Recevoir les astuces Tout Pratique dans ma boite mail' mod='cms_comments'}</label>
</div>
<div class="submit">
<div class="g-recaptcha" data-sitekey="6LchYwsTAAAAALx2jGKKOjkqZQzxdlas5UvYmK-L"></div>
<input type="submit" class="form-control btn btn-black" value="Envoyer">
<p class="desc">{l s='Les commentaires sont soumis à modération, ils apparaîtront suite à validation de la rédaction.' mod='cms_comments'}</p>
</div>
</form>
</div>
</section>