Sha256: 02c52be1851b1a2f3e90f6377ad164e3e447f6f9496e1e42bd8a39b60f9a018d

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

<div id="reviews">
  <a name="reviews_anc"></a>
  <h3><%= t(:review_header) %></h3>

  <div style="margin-bottom: 2em">
    <a id="add_review_link" href="#"><%= t(:submit_your_review) %></a>
  </div>

  <div id="add_review_container" style="display: none">
    <%= render 'reviews/form', { :product => @product, :review => Review.new } %>
  </div>

  <hr class="review_hr" />

  <a name="reviews_list"></a>
  <% for review in @product.reviews.approval_filter %>
    <%= render :partial => 'shared/review', :locals => {:review => review} %>
  <% end %>
</div>

<script type="text/javascript">
  $(function() {
    $('#new_review').validate({
      rules: {
        'review[review]': {
          required: true
        },
        'review[rating]': {
          required: true
        },
        'review[name]': {
          required: true
        }
      },
      messages: {
        'review[rating]': {
          required: '<%= t(:you_must_rate_the_product) %>'
        }
      }
    });
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
synergy_default_theme-1.0.2 app/views/shared/_reviews.html.erb