1 <h1>Filter Purchases</h1>
3 <% if @type == "customer" or @type == "all" %>
4 <%= start_form_tag :action => 'filter', :type => :customer %>
5 Customer ID: <%= text_field 'id', nil %>
10 <% if @type == "date" or @type == "all" %>
11 <%= start_form_tag :action => 'filter', :type => :date %>
12 Date: <%= date_select 'id', nil %>
13 <%= submit_tag 'Ok' %>