From 5c2fe1c47f1df7c0c2d7ed317b320a1a51930108 Mon Sep 17 00:00:00 2001 From: Andrea Longhi Date: Sat, 20 Feb 2010 19:20:03 +0100 Subject: [PATCH] added ebay site selector on resultset page --- .gitignore | 1 + app/views/admin/resultsets/_item.html.haml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3aa0df1..9704491 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ tmp/*.txt config/database.yml coverage/* public/images/sandbox/* +*.gz diff --git a/app/views/admin/resultsets/_item.html.haml b/app/views/admin/resultsets/_item.html.haml index 571064a..14239ab 100644 --- a/app/views/admin/resultsets/_item.html.haml +++ b/app/views/admin/resultsets/_item.html.haml @@ -16,10 +16,10 @@ = hidden_field_tag 'auction[title]', item.title = hidden_field_tag 'auction[item_id]', item.item_id = hidden_field_tag 'auction[end_time]', item.end_time - = hidden_field_tag 'auction[ebay_site_id]', @resultset.ebay_site = hidden_field_tag 'auction[currency_id]', item.current_price.currency_id = hidden_field_tag 'auction[url]', item.view_item_url_for_natural_search = hidden_field_tag 'auction[image_url]', item.gallery_url + = select_tag 'auction[ebay_site_id]', options_from_collection_for_select(EbaySite.all, 'name', 'name', @resultset.ebay_site) = f.select :cosmetic_conditions, Auction::COSMETIC_CONDITIONS = f.select :completeness, Auction::COMPLETENESSES = hardware_selector(f)