Sha256: 8807bcc258ef6691e80435529bf39787b89f57131997cb11be340d3150447eca

Contents?: true

Size: 1.5 KB

Versions: 22

Compression:

Stored size: 1.5 KB

Contents

<%#
= INPUTS

@list::       model instance list
@count::      model instance list count
@page_info::  page_info instance
%>
<div id=edgarj_list>           <!-- edgarj/_list.html.erb -->
  <table width="100%">
    <tr>
      <td><%= t('edgarj.default.total_records') % @count %></td>
      <td>
          <%= paginate @list,
                  remote: true,
                  params: {action: 'index'} %>
      </td>
      <td align=right>
        <%=
            form_for(@page_info,
                remote: true,
                url:    {action: 'page_info_save', id: @page_info.id,
                         controller: params[:controller]},
                html:   {id: 'edgarj_form_lines_per_page', method: :put}
            ) do |f| %>
          <%= f.select('lines', Edgarj::LINES_PER_PAGE.map{|x| [x,x]}) %>
          <%= v('records_per_page') %>
        <% end %>
      </td>
      <td>
        <%= button_to v('csv_download'), {
                  controller: params[:controller],
                  action:     'csv_download'},
                  {method: :get} %>
      </td>
    </tr>
  </table>
  <%= drawer.draw_list(@list) %>

  <%= javascript_tag do %>
  $(function(){
    /* action on changing records/page at the selection in list */
    $('#edgarj_page_info_lines').change(function(){
      $("#edgarj_form_lines_per_page").trigger("submit.rails");
    });
  
    /* show detail on clicking a list row */
    $('._edgarj_list_column').click(function(){
      $.ajax($(this).attr('data-url'));
    });
  });
  <% end %>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
edgarj-4.00.04 app/views/edgarj/edgarj/_list.html.erb
edgarj-4.00.03 app/views/edgarj/edgarj/_list.html.erb
edgarj-4.00.02 app/views/edgarj/edgarj/_list.html.erb
edgarj-4.00.01 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.02.00 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.30 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.29 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.28 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.27 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.26 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.25 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.24 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.22 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.21 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.20 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.19 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.18 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.17 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.16 app/views/edgarj/edgarj/_list.html.erb
edgarj-0.01.15 app/views/edgarj/edgarj/_list.html.erb