Sha256: 144ef97a506b9bffcdbca10b1bbd237aa030caa44fe65562b1b28807df636e18
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
<div class='toolbar'> <ul class='actions'> <li> <%= button_link_to 'New Question', new_object_url, { :icon => 'add' } %> </li> </ul> <br class='clear' /> </div> <h1><%=t("questions") %></h1> <table class="index"> <tr> <th><%= Spree::Question.human_attribute_name(:question) %></th> <th><%= Spree::Question.human_attribute_name(:answer) %></th> <th><%= sort_link @search,:created_at, t(:created_at), { :default_order => "desc" }, {:title => 'admin_products_listing_created_at_title'} %></th> <th><%= t("action") %></th> </tr> <tbody> <% @questions.each do |question| %> <tr class="<%= cycle('even', 'odd') %>" id="<%= dom_id question %>"> <td> <%= question.question %> </td> <td> <%= question.answer %> </td> <td style="white-space:nowrap;"> <%= time_tag question.created_at, :format => '%B %e, %Y %l:%M %P' %> </td> <td style="white-space:nowrap;"> <%= link_to_edit question %> <%= link_to_delete question %> </td> </tr> <% end %> </tbody> </table> <%= paginate @questions %> <% content_for :sidebar do %> <div data-hook="admin_questions_sidebar"> <%= search_form_for [:admin, @search] do |f| %> <div class="box"> <h3><%= t(:search) %></h3> <%- locals = {:f => f} %> <div data-hook="admin_questions_index_search"> <p> <%= f.label :question_cont, t(:question) %><br /> <%= f.text_field :question_cont, :size => 40 %> </p> <p> <%= f.label :answer_cont, t(:answer) %><br /> <%= f.text_field :answer_cont, :size => 40 %> </p> </div> <div data-hook="admin_questions_index_search_buttons"> <p class="form-buttons"> <%= button t(:search) %> </p> </div> </div> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_grid_faq-0.1.0 | app/views/spree/admin/questions/index.html.erb |
spree_grid_faq-0.0.9 | app/views/spree/admin/questions/index.html.erb |