Sha256: 643c74a5a64bcdd503e2b184c65c2dc7e9fb6d1f633687414a26435ee12f56d7
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
<% if commentable.comments.any? %> <%= render 'spree/admin/shared/comment_list', :commentable => commentable %> <% else %> <div class="alpha twelve columns no-objects-found"> <%= Spree.t(:no_resource_found, resource: I18n.t(:comments, scope: 'spree')) %> </div> <% end %> <div class="order-add-comment"> <%= form_for(:comment, :url => admin_comments_url) do |f| %> <%= hidden_field_tag 'comment[commentable_id]', commentable.id %> <%= hidden_field_tag 'comment[commentable_type]', commentable.class %> <%= hidden_field_tag 'comment[user_id]', spree_current_user.id %> <fieldset data-hook="admin_comment_form_fields" class="no-border-top fullwidth"> <fieldset class="index no-border-bottom"> <legend align="center"><%= Spree.t(:add_comment) %></legend> <div data-hook="comment_fields" class="row"> <div class="alpha twelve columns"> <% if @comment_types.present? %> <div class="field"> <%= f.label :comment_type_id, Spree.t(:type) %> <%= f.select :comment_type_id, @comment_types.map{|ct| [ct.name, ct.id]},{} ,:class => 'fullwidth' %> </div> <% end %> <div class="field"> <%= f.label :comment, Spree.t(:comment) %> <%= f.text_area :comment, :style => 'height:150px;', :class => 'fullwidth' %> </div> </div> </div> </fieldset> <div class="clear"></div> <div class="form-buttons filter-actions actions" data-hook="buttons"> <%= button Spree.t(:add_comment), 'icon-arrow-right' %> </div> </fieldset> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_comments-1.0.1 | app/views/spree/admin/shared/_comments.html.erb |
solidus_comments-1.0.0 | app/views/spree/admin/shared/_comments.html.erb |