integration new theme standard
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8168 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -57,8 +57,9 @@
|
||||
</script>
|
||||
|
||||
<div id="product_comments_block_extra">
|
||||
<div>
|
||||
<span style="float:left;">{l s='Average grade' mod='productcomments'} </span>
|
||||
<div class="comments_note">
|
||||
<span>{l s='Average grade' mod='productcomments'} </span>
|
||||
<div class="star_content clearfix">
|
||||
{section name="i" start=0 loop=5 step=1}
|
||||
{if $averageTotal le $smarty.section.i.index}
|
||||
<div class="star"></div>
|
||||
@@ -66,9 +67,9 @@
|
||||
<div class="star star_on"></div>
|
||||
{/if}
|
||||
{/section}
|
||||
<br style="clear:both"/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="comments_advices">
|
||||
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
|
||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
||||
<a id="new_comment_btn" href="#new_comment_form">{l s='Give your advice' mod='productcomments'}</a>
|
||||
@@ -76,53 +77,59 @@
|
||||
</div>
|
||||
<div style="display: none;">
|
||||
<div id="new_comment_form">
|
||||
<div>
|
||||
<form action="{$action_url}" method="post" id="sendComment">
|
||||
<span class="title">{l s='Give your advice' mod='productcomments'}</span>
|
||||
<div style="margin-top:20px">
|
||||
<img style="float:left" src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:html:'UTF-8'}" />
|
||||
<div style="float:left; width:300px; margin-left:10px">
|
||||
<strong class="clearfix">{$product->name}</strong>
|
||||
{$product->description_short}
|
||||
</div>
|
||||
<form action="{$action_url}" method="post" id="sendComment">
|
||||
<h2 class="title">{l s='Give your advice' mod='productcomments'}</h2>
|
||||
|
||||
<div class="product clearfix">
|
||||
<img src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product->name|escape:html:'UTF-8'}" />
|
||||
<div class="product_desc">
|
||||
<p class="product_name"><strong>{$product->name}</strong></p>
|
||||
{$product->description_short}
|
||||
</div>
|
||||
<br style="clear:both"/>
|
||||
<div style="margin-top:20px">
|
||||
{if $criterions|@count > 0}
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
{section loop=$criterions name=i start=0 step=1}
|
||||
<tr>
|
||||
<th>
|
||||
<input type="hidden" name="id_product_comment_criterion_{$smarty.section.i.iteration}" value="{$criterions[i].id_product_comment_criterion|intval}" />
|
||||
{$criterions[i].name|escape:'html':'UTF-8'}:
|
||||
</th>
|
||||
<td>
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" id="{$smarty.section.i.iteration}_grade" value="1" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="2" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="3" checked="checked" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="4" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="5" />
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
{/if}
|
||||
<label for="comment_title">{l s='Title' mod='productcomments'} *:</label>
|
||||
<input name="title" type="text" value=""/><br/>
|
||||
<label for="content">{l s='Comment' mod='productcomments'} *:</label>
|
||||
<textarea name="content"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="new_comment_form_content">
|
||||
<p class="intro_form">{l s='Give your advice' mod='productcomments'}</p>
|
||||
{if $criterions|@count > 0}
|
||||
<div class="grade_content clearfix">
|
||||
{section loop=$criterions name=i start=0 step=1}
|
||||
<span>
|
||||
<input type="hidden" name="id_product_comment_criterion_{$smarty.section.i.iteration}" value="{$criterions[i].id_product_comment_criterion|intval}" />
|
||||
{$criterions[i].name|escape:'html':'UTF-8'}:
|
||||
</span>
|
||||
<div class="star_content">
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" id="{$smarty.section.i.iteration}_grade" value="1" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="2" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="3" checked="checked" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="4" />
|
||||
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="5" />
|
||||
</div>
|
||||
{/section}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form_contenair">
|
||||
<p class="text">
|
||||
<label for="comment_title">{l s='Title' mod='productcomments'} <sup>*</sup>:</label>
|
||||
<input name="title" type="text" value=""/>
|
||||
</p>
|
||||
<p class="textarea">
|
||||
<label for="content">{l s='Comment' mod='productcomments'} <sup>*</sup>:</label>
|
||||
<textarea name="content"></textarea>
|
||||
</p>
|
||||
{if $allow_guests == true && $logged == 0}
|
||||
<label>{l s='Your name:' mod='productcomments'} *:</label>
|
||||
<input name="customer_name" type="text" value=""/><br/>
|
||||
<p class="text">
|
||||
<label>{l s='Your name:' mod='productcomments'} <sup>*</sup>:</label>
|
||||
<input name="customer_name" type="text" value=""/>
|
||||
</p>
|
||||
{/if}
|
||||
<p style="float:right">
|
||||
<p class="submit">
|
||||
<span class="txt_required">* {l s='All ths fields are mandatory' mod='productcomments'}</span>
|
||||
<button name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button>
|
||||
{l s='or' mod='productcomments'} <a href="#" onclick="$.fancybox.close();">{l s='Cancel' mod='productcomments'}</a>
|
||||
</p>
|
||||
<br style="clear:both"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div><!-- /end new_comment_form_content -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user