-
Notifications
You must be signed in to change notification settings - Fork 28
/
list.rhtml
49 lines (47 loc) · 1.93 KB
/
list.rhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<%= render :partial => STREAMLINED_TEMPLATE_ROOT + '/shared/header_partials' %>
<% form_for :page_options, @page_options,
:url => { :action => "list"}, :html=> {:id => :page_options, :style => 'display: none;'} do |form| %>
<%# TODO: hide this form when JavaScript is available, then use it behind scenes%>
Filter <%= form.text_field 'filter', {:autocomplete=>"off"} %>
Advanced Filter <%= form.text_field 'advanced_filter', {:autocomplete=>"off"} %>
Page <%= form.text_field 'page', {:autocomplete=>"off"} %>
Sort Order <%= form.text_field 'sort_order', {:autocomplete=>"off"} %>
Sort Column <%= form.text_field 'sort_column', {:autocomplete=>"off"} %>
Counter <%= form.text_field 'counter', {:autocomplete=>"off"} %>
<%= submit_tag "Show Me" %>
<% end %>
<% if Rails::VERSION::MAJOR >= 2 -%>
<!-- Embedded authenticity token for use in JavaScript that sends custom AJAX requests -->
<div id="authenticity_token" style="display: none">
<%= form_authenticity_token if protect_against_forgery? %>
</div>
<% end -%>
<div id="streamlined_list">
<div class="actions" id="list-filter">
<%= streamlined_filter %>
</div>
<div class="streamlined_header">
<h2><%= image_tag_if_exists("#{model_table}.png", {:align => 'top'}) %> <%= model_name.titleize.pluralize %></h2>
</div>
<%= render :partial => STREAMLINED_TEMPLATE_ROOT + '/shared/after_header_partials' %>
<div id="show_export">
<%= render :partial => STREAMLINED_TEMPLATE_ROOT + '/generic_views/show_export' %>
</div>
<div id="model_list">
<%= render :partial=>'list' %>
</div>
<div class="#streamlined_list-footer">
<div id="controls">
<%= link_to_new_model -%>
<%= link_to_toggle_export -%>
<%= link_to_previous_page -%>
<%= link_to_next_page -%>
<br />
</div>
</div>
</div>
<%= render :partial => STREAMLINED_TEMPLATE_ROOT + '/shared/footer_partials' %>
<%= update_page_tag do |page|
page.hide 'show_export'
end
%>