X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fpurchase%2Ffilter.rhtml;fp=app%2Fviews%2Fpurchase%2Ffilter.rhtml;h=3e5be129a46f8082de1821e080f71733956dbfa7;hb=b12881a928516bca02b2bd8ce1bbe9288840c76f;hp=0000000000000000000000000000000000000000;hpb=bbf13350a73e14c5448f6fb0077126b7d92cdb48;p=cs356-p2-videostore.git diff --git a/app/views/purchase/filter.rhtml b/app/views/purchase/filter.rhtml new file mode 100644 index 0000000..3e5be12 --- /dev/null +++ b/app/views/purchase/filter.rhtml @@ -0,0 +1,16 @@ +

Filter Purchases

+ +<% 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 %> +