Sha256: c7fc0ffab2d5288da284cb97d507f1116947da8522ec30b11c672b249ddc9e0e

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 Bytes

Contents

<%= render :partial => "feedback_reviews/summary", :locals => {:review => review}%>
<%= form_for((@feedback_review ||= review.feedback_reviews.build), :url => feedback_review_path(review), :method => :post, :remote => true) do |f| %>
<% unless @feedback_review.errors.empty? %>
 <span class="error"><%= @feedback_review.errors[:rating] %></span>
 <br />
<% end %>

<%= t(:was_this_review_helpful) %>
<% for i in 1..NB_STARS %>
<%= radio_button_tag "feedback_review[rating]", pluralize(i, 'stars'), false, :class => "star" %>
<% end %>
<%= hidden_field_tag "feedback_review[user_id]", current_user.try(:id) %>
<button class="feedback-review"><span><%= t("yes") %></span></button>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_reviews-0.50.1 app/views/feedback_reviews/_form.html.erb
spree_reviews-0.50.0 app/views/feedback_reviews/_form.html.erb