--- /dev/null
+<h1>Filter Purchases</h1>
+
+<% if @type == "customer" or @type == "all" %>
+ <%= start_form_tag :action => 'filter', :type => :customer %>
+ Customer ID: <%= text_field 'id', nil %>
+ <%= submit_tag 'Ok' %>
+ <%= end_form_tag %>
+<% end %>
+
+<% if @type == "date" or @type == "all" %>
+ <%= start_form_tag :action => 'filter', :type => :date %>
+ Date: <%= date_select 'id', nil %>
+ <%= submit_tag 'Ok' %>
+ <%= end_form_tag %>
+<% end %>
+