first commit
This commit is contained in:
26
templates/frontend/comment/add.html.twig
Normal file
26
templates/frontend/comment/add.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="blog-write-comment outer-bottom-xs outer-top-xs">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4>Laissez un commentaire</h4>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
{{ form_start(form, {'action': pathComment, 'method': 'POST'}) }}
|
||||
<div class="my-custom-class-for-errors">
|
||||
{{ form_errors(form) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="info-title" for="exampleInputComments"></label>
|
||||
{{ form_row(form.commentaire, {'attr': {'class': 'form-control unicase-form-control', 'style':'height: 221px;'}}) }}
|
||||
</div>
|
||||
<div class="outer-bottom-small m-t-20" id="some-custom-id">
|
||||
{{ form_row(form.save, {'attr': {'class': 'btn-upper btn btn-primary checkout-page-button'}}) }}
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
22
templates/frontend/comment/comments.html.twig
Normal file
22
templates/frontend/comment/comments.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% set commentsLength = comments|length %}
|
||||
<div class="blog-page">
|
||||
<div class="blog-review wow fadeInUp">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 class="title-review-comments">{{ commentsLength }} comments</h3>
|
||||
</div>
|
||||
{% for comment in comments %}
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="blog-comment inner-bottom-xs">
|
||||
<h4>{{ comment.getClient().getPseudo() }}</h4>
|
||||
<span class="review-action pull-right">
|
||||
{{ comment.getDateAdd()|date("d/m/Y H:i") }}
|
||||
</span>
|
||||
<p>{{ comment.getCommentaire() }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{#<div class="post-load-more col-md-12"><a class="btn btn-upper btn-primary" href="#">Afficher plus</a></div>#}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user