[-] MO : #PSCFV-2924 - Cannot comment a product if there already comments validated

This commit is contained in:
mDeflotte committed 2012-07-03 12:40:51 +00:00
1 parent ed299a7878
commit 59fc70aa6b
1 file changed
+13 -11
+13 -11
View File
@@ -74,7 +74,18 @@ var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
{/foreach} {/foreach}
{else} {else}
{if ($too_early == false AND ($logged OR $allow_guests))} {if ($too_early == false AND ($logged OR $allow_guests))}
<div style="display: none;"> <p class="align_center">
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
</p>
{else}
<p class="align_center">{l s='No customer comments for the moment.' mod='productcomments'}</p>
{/if}
{/if}
</div>
</div>
<!-- Fancybox -->
<div style="display: none;">
<div id="new_comment_form"> <div id="new_comment_form">
<form action="#"> <form action="#">
<h2 class="title">{l s='Write your review' mod='productcomments'}</h2> <h2 class="title">{l s='Write your review' mod='productcomments'}</h2>
@@ -134,14 +145,5 @@ var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
</div> </div>
</form><!-- /end new_comment_form_content --> </form><!-- /end new_comment_form_content -->
</div> </div>
</div>
<p class="align_center">
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
</p>
{else}
<p class="align_center">{l s='No customer comments for the moment.' mod='productcomments'}</p>
{/if}
{/if}
</div>
</div> </div>
<!-- End fancybox -->