<mvt:if expr="g.GD_Error">
Error: &mvte:global:GD_Error;
</mvt:if>
<div id="gd-ratings-review-widget">
<div class="gd-ratings-review-widget-title">
<h2>Product Review
<small class="product-name">
&mvt:gd_ratings:product:name;
</small>
</h2>
</div>
<form action="&mvt:gd_ratings:protocol_relative_url;" method="post">
<input type="hidden" name="Action" value="GD_WREVIEW" />
<input type="hidden" name="GD_Ratings:product_review:product_id" value="&mvt:gd_ratings:product:id;" />
<mvt:if expr="g.OrderID">
<input type="hidden" name="OrderID" value="&mvte:global:OrderID;" />
<input type="hidden" name="RedirectTo" value="&mvt:global:domain:mm_url;Screen=GD_WREVIEW" />
<mvt:else>
<input type="hidden" name="RedirectTo" value="&mvt:global:domain:mm_url;Screen=PROD&Product_Code=&mvte:gd_ratings:product:code;" />
</mvt:if>
<div id="gd-review-container">
<div class="gd-field-group">
<label class="required">Title</label>
<input type="text" name="GD_Ratings:product_review:title" value="&mvt:global:GD_Ratings:product_review:title;" />
</div>
<div class="gd-field-group gd-rate-field">
<input type="hidden" name="GD_Ratings:product_review:overall" value="&mvt:global:GD_Ratings:product_review:overall;" id="gd_review_product_review_overall" />
<label class="required">Overall Rating</label>
<span class="gd-review-stars-control" data-target="#gd_review_product_review_overall">
<button data-value="1">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="2">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="3">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="4">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="5">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
</span>
</div>
<mvt:assign name="g.index" value="0" />
<mvt:foreach iterator="additional_field" array="gd_ratings:additional_fields:results">
<mvt:assign name="g.index" value="g.index + 1" />
<input type="hidden" name="GD_Ratings:additional_rating[&mvt:global:index;]:id" value="&mvte:additional_field:id;" />
<div class="gd-field-group gd-rate-field">
<input type="hidden" name="GD_Ratings:additional_rating[&mvt:global:index;]:value" value="0" id="gd_review_additional_rating_&mvt:global:index;_value" />
<label class="required">&mvte:additional_field:name;</label>
<span class="gd-review-rating-control" data-target="#gd_review_additional_rating_&mvt:global:index;_value">
<button data-value="1"></button>
<button data-value="2"></button>
<button data-value="3"></button>
<button data-value="4"></button>
<button data-value="5"></button>
</span>
</div>
</mvt:foreach>
<input type="hidden" name="GD_Ratings:additional_ratings_total" value="&mvte:global:index;" />
<div class="gd-field-group">
<label class="required">Summary</label>
<textarea name="GD_Ratings:product_review:summary">
&mvt:global:GD_Ratings:product_review:summary;
</textarea>
</div>
<div class="gd-field-group">
<strong>Would you recommend this product?</strong>
<label class="gd-checkbox">
<input type="radio" name="GD_Ratings:product_review:recommended" value="1" /> Yes
</label>
<label class="gd-checkbox">
<input type="radio" name="GD_Ratings:product_review:recommended" value="0" /> No
</label>
</div>
<h3>Your Information</h3>
<div class="gd-field-group">
<label>Nick Name</label>
<input type="text" name="GD_Ratings:user:nickname" value="&mvte:global:GD_Ratings:user:nickname;" />
</div>
<div class="gd-field-group">
<label>Email</label>
<input type="text" name="GD_Ratings:user:email" value="&mvte:global:GD_Ratings:user:email;" />
</div>
<div class="gd-field-group">
<label>Location</label>
<input type="text" name="GD_Ratings:user:location" value="&mvte:global:GD_Ratings:user:location;" />
</div>
<div class="gd-field-group">
<label class="gd-checkbox">
<mvt:if expr="g.GD_Ratings:user:notify">
<input type="checkbox" name="GD_Ratings:user:notify" value="1" checked="checked" />
<mvt:else>
<input type="checkbox" name="GD_Ratings:user:notify" value="1" />
</mvt:if>
Send me an email if my review is approved.
</label>
</div>
<h3>Rate Your Experience with &mvt:global:Domain:company;</h3>
<div class="gd-field-group gd-rate-field">
<label>Overall Rating</label>
<input type="hidden" name="GD_Ratings:store_review:overall" value="0" id="gd_review_store_review_overall" />
<span class="gd-review-stars-control" data-target="#gd_review_store_review_overall">
<button data-value="1">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="2">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="3">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="4">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
<button data-value="5">
<i class="fa fa-&mvt:gd_ratings:config:fa_star;"></i>
</button>
</span>
</div>
<div class="gd-field-group">
<label>Comments</label>
<textarea name="GD_Ratings:store_review:summary">
&mvte:global:GD_Ratings:store_review:summary;
</textarea>
</div>
</div>
<mvt:if expr="l.settings:gd_ratings:config:recaptcha:site_key">
<div class="g-recaptcha" data-sitekey="&mvt:gd_ratings:config:recaptcha:site_key;"></div>
</mvt:if>
<div class="actions">
<button type="submit">
Submit Review
</button>
</div>
</form>
</div>