Sha256: f0bf53c8b39abe50090585c79bf6d911deec1da708590bbbfa7d514a2950b181

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

<%= form_for review, url: product_reviews_path(product), html: { method: :post, multipart: true} do |f| %>
  <%= render "spree/shared/error_messages", target: review %>

  <p class="review_rating_field">
    <%= f.label :rating %> <span class="required">*</span><br />
    <%= render "spree/reviews/stars", stars: review.rating, edit_enabled: true %>
  </p>

  <p class="review_name_field">
    <%= f.label :name %><br />
    <%= f.text_field :name, maxlength: "255", size: "50" %>
  </p>

  <p class="review_title_field">
    <%= f.label :title %><br />
    <%= f.text_field :title, maxlength: "255", size: "50" %>
  </p>

  <p class="review_review_field">
    <%= f.label :review %><br />
    <%= f.text_area :review, wrap: "virtual", rows: "10", cols: "50" %>
  </p>

  <% if Spree::Reviews::Config[:allow_image_upload] %>
    <p class="review_images_field">
      <%= f.label :images %><br>
      <%= f.file_field :images, :accept => "image/*", multiple: true %>
    </p>
  <% end %>

  <% if Spree::Reviews::Config[:render_show_identifier_checkbox] %>
    <p class="review_show_identifier_field">
      <%= f.label :show_identifier %><br />
      <%= f.check_box :show_identifier, wrap: "virtual", rows: "10", cols: "50", checked: true %>
    </p>
  <% end %>

  <p class="review_submit">
    <%= f.submit I18n.t("spree.submit_your_review"), class: "button bg_darkfirst" %>
  </p>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/views/spree/reviews/_form.html.erb
solidus_reviews-1.6.0 app/views/spree/reviews/_form.html.erb
solidus_reviews-1.5.0 app/views/spree/reviews/_form.html.erb
solidus_reviews-1.4.1 app/views/spree/reviews/_form.html.erb
solidus_reviews-1.4.0 app/views/spree/reviews/_form.html.erb