Sha256: 7c6a9d55c1c52b63d4b80fd397a557a003770a03a11af2665a1f1a3ef22d4739

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

<%= render "spree/shared/error_messages", target: @review %>
<%= f.field_container :name do %>
  <%= f.label :name %><br />
  <%= f.text_field :name, maxlength: "255", size: "60" %>
<% end %>

<%= f.field_container :email do %>
  <%= f.label :email %><br />
  <%= mail_to @review.email %>
<% end %>

<%= f.field_container :title do %>
  <%= f.label :title %><br />
  <%= f.text_field :title, maxlength: "255", size: "60" %>
<% end %>

<%= f.field_container :review do %>
  <%= f.label :review %><br />
  <%= f.text_area :review, wrap: "virtual", rows: "10", cols: "60" %>
<% end %>

<%= f.field_container :images do %>
  <%= f.label :images %>
  <table>
    <% @review.images.each do |image| %>
      <tr>
        <td>
          <%= image_tag image.url(:original) %>
        </td>
        <td>
          <%= link_to_delete image, url: admin_review_image_url(@review, image, product_id: @review.product), no_text: true  %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>

<% if Spree::Reviews::Config[:track_locale] %>
<%= f.field_container :locale do %>
  <%= f.label :locale %><br />
  <%= f.select :locale, I18n.available_locales.map { |lc| [t(lc, default: lc.to_s), lc.to_s] } %>
<% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.6.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.5.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.4.1 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.4.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.3.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.2.0 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.1.1 app/views/spree/admin/reviews/_form.html.erb
solidus_reviews-1.1.0 app/views/spree/admin/reviews/_form.html.erb