Sha256: 2b2f70dbb54e31228b98defaed27431de5bb44ea55132ce2814e76e2fa7dbd6a

Contents?: true

Size: 937 Bytes

Versions: 1

Compression:

Stored size: 937 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="#">Добавить отзыв</a>
  </div>

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

  <hr class="review_hr" style="" />

  <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
        }
      },
      messages: {
        'review[rating]': {
          required: 'Оцените товар'
        }
      }
    });
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

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