forgeos_commerce 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +339 -0
- data/COPYING.LESSER +165 -0
- data/Gemfile +2 -0
- data/LICENSE +2 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +27 -0
- data/app/assets/images/forgeos/admin/favicon.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/bubble-quantity-products.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/check-checked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/check-unchecked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/context.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/create.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/dark-blue-minus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/dark-blue-plus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/dot.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/f.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/fminus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/fminus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/folder.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/fplus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/fplus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/lastli.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/lastli_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/li.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/remove.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/rename.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/association_product/throbber.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/bubble-quantity-products.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/check-checked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/check-unchecked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/context.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/create.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/dark-blue-minus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/dark-blue-plus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/dot.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/drag-drop.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/f.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/fminus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/fminus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/folder.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/fplus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/fplus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/grey-drag-drop.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/lastli.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/lastli_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/li.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/remove.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/rename.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product-types/throbber.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/brown-minus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/brown-plus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/bubble-quantity-products.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/context.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/create.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/dot.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/f.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/fminus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/fminus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/fplus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/fplus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/lastli.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/lastli_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/li.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/remove.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/rename.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/product_category/throbber.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/bubble-quantity-products.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/check-checked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/check-unchecked.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/context.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/create.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/dark-blue-minus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/dark-blue-plus.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/dot.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/f.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/fminus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/fminus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/folder.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/fplus.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/fplus_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/lastli.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/lastli_rtl.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/li.gif +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/remove.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/rename.png +0 -0
- data/app/assets/images/forgeos/jstree/themes/zone-tree/throbber.gif +0 -0
- data/app/assets/javascripts/forgeos/admin/functions.js +3 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/all.js +1 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/attributes.js +18 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/cross-sellings.js +18 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/orders.js +88 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/products.js +46 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/rules.js +98 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/transporters.js +60 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/trees.js +35 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_commerce/uploads.js +10 -0
- data/app/assets/javascripts/forgeos/admin/inits.js +3 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/all.js +1 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/clicks.js +25 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/cross-sellings.js +69 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/customer.js +64 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/orders.js +83 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/overlays.js +45 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/products.js +103 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/settings.js +15 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/special-offers.js +23 -0
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_commerce/trees.js +71 -0
- data/app/assets/stylesheets/forgeos/admin/base.css.sass +3 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_all.css.sass +9 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_attributes.css.sass +59 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_customer.css.sass +84 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_delivery.css.sass +81 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_dropdowns.css.sass +171 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_order.css.sass +208 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_payment.css.sass +34 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_products.css.sass +341 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_special_offers.css.sass +198 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_commerce/_transporters.css.sass +5 -0
- data/app/assets/stylesheets/forgeos/jstree/themes/association_product/style.css.sass +50 -0
- data/app/assets/stylesheets/forgeos/jstree/themes/product-types/style.css.sass +129 -0
- data/app/assets/stylesheets/forgeos/jstree/themes/product_category/style.css.sass +109 -0
- data/app/assets/stylesheets/forgeos/jstree/themes/zone-tree/style.css.sass +103 -0
- data/app/controllers/addresses_controller.rb +51 -0
- data/app/controllers/admin/attributes_controller.rb +161 -0
- data/app/controllers/admin/base_controller.rb +5 -0
- data/app/controllers/admin/brands_controller.rb +119 -0
- data/app/controllers/admin/forms_controller.rb +66 -0
- data/app/controllers/admin/geo_zones_controller.rb +74 -0
- data/app/controllers/admin/import_controller.rb +50 -0
- data/app/controllers/admin/orders_controller.rb +248 -0
- data/app/controllers/admin/product_types_controller.rb +122 -0
- data/app/controllers/admin/products_controller.rb +204 -0
- data/app/controllers/admin/special_offers_controller.rb +236 -0
- data/app/controllers/admin/statistics_controller.rb +64 -0
- data/app/controllers/admin/transporter_rules_controller.rb +307 -0
- data/app/controllers/admin/users_controller.rb +100 -0
- data/app/controllers/admin/vouchers_controller.rb +207 -0
- data/app/controllers/application_controller.rb +75 -0
- data/app/controllers/order_controller.rb +229 -0
- data/app/helpers/admin/payment_fields_helper.rb +31 -0
- data/app/helpers/application_helper.rb +7 -0
- data/app/helpers/cart_helper.rb +40 -0
- data/app/helpers/category_helper.rb +36 -0
- data/app/helpers/product_helper.rb +118 -0
- data/app/helpers/routes_helper.rb +60 -0
- data/app/helpers/wishlist_helper.rb +142 -0
- data/app/models/address_delivery.rb +2 -0
- data/app/models/address_invoice.rb +2 -0
- data/app/models/attribute.rb +38 -0
- data/app/models/attribute_category.rb +3 -0
- data/app/models/attribute_value.rb +10 -0
- data/app/models/brand.rb +22 -0
- data/app/models/brand_category.rb +3 -0
- data/app/models/cart.rb +190 -0
- data/app/models/cart_item.rb +21 -0
- data/app/models/checkbox_attribute.rb +2 -0
- data/app/models/country.rb +4 -0
- data/app/models/cross_sellings_product.rb +4 -0
- data/app/models/currencies_exchanges_rate.rb +2 -0
- data/app/models/currency.rb +13 -0
- data/app/models/date_attribute.rb +2 -0
- data/app/models/dynamic_attribute.rb +6 -0
- data/app/models/dynamic_attribute_value.rb +5 -0
- data/app/models/form.rb +7 -0
- data/app/models/form_attribute.rb +3 -0
- data/app/models/geo_zone.rb +6 -0
- data/app/models/longtext_attribute.rb +2 -0
- data/app/models/number_attribute.rb +2 -0
- data/app/models/order.rb +483 -0
- data/app/models/order_detail.rb +129 -0
- data/app/models/order_shipping.rb +25 -0
- data/app/models/pack.rb +9 -0
- data/app/models/picklist_attribute.rb +2 -0
- data/app/models/product.rb +294 -0
- data/app/models/product_attribute.rb +4 -0
- data/app/models/product_category.rb +9 -0
- data/app/models/product_link.rb +9 -0
- data/app/models/product_price_variation.rb +3 -0
- data/app/models/product_sold_counter.rb +2 -0
- data/app/models/product_sweeper.rb +30 -0
- data/app/models/product_type.rb +27 -0
- data/app/models/product_type_category.rb +3 -0
- data/app/models/product_viewed_counter.rb +2 -0
- data/app/models/products_wishlist.rb +25 -0
- data/app/models/radio_attribute.rb +2 -0
- data/app/models/radiobutton_attribute.rb +2 -0
- data/app/models/setting.rb +46 -0
- data/app/models/size.rb +5 -0
- data/app/models/special_offer_category.rb +3 -0
- data/app/models/special_offer_rule.rb +21 -0
- data/app/models/text_attribute.rb +2 -0
- data/app/models/text_field_attribute.rb +2 -0
- data/app/models/transporter_category.rb +3 -0
- data/app/models/transporter_rule.rb +3 -0
- data/app/models/url_attribute.rb +2 -0
- data/app/models/user.rb +45 -0
- data/app/models/user_address.rb +6 -0
- data/app/models/voucher_category.rb +3 -0
- data/app/models/voucher_rule.rb +3 -0
- data/app/models/wishlist.rb +134 -0
- data/app/views/admin/addresses/_form.html.haml +42 -0
- data/app/views/admin/attributes/_categories.html.haml +7 -0
- data/app/views/admin/attributes/_choice.html.haml +24 -0
- data/app/views/admin/attributes/_date.html.haml +5 -0
- data/app/views/admin/attributes/_form.html.haml +36 -0
- data/app/views/admin/attributes/_longtext.html.haml +5 -0
- data/app/views/admin/attributes/_number.html.haml +5 -0
- data/app/views/admin/attributes/_tabs.html.haml +6 -0
- data/app/views/admin/attributes/_text.html.haml +5 -0
- data/app/views/admin/attributes/_url.html.haml +5 -0
- data/app/views/admin/attributes/destroy.js.erb +1 -0
- data/app/views/admin/attributes/edit.html.haml +2 -0
- data/app/views/admin/attributes/index.html.haml +33 -0
- data/app/views/admin/attributes/index.json.erb +24 -0
- data/app/views/admin/attributes/new.html.haml +2 -0
- data/app/views/admin/attributes/show.html.haml +51 -0
- data/app/views/admin/brands/_form.html.haml +29 -0
- data/app/views/admin/brands/_tabs.html.haml +6 -0
- data/app/views/admin/brands/destroy.js.erb +1 -0
- data/app/views/admin/brands/edit.html.haml +2 -0
- data/app/views/admin/brands/index.html.haml +15 -0
- data/app/views/admin/brands/index.json.erb +23 -0
- data/app/views/admin/brands/new.html.haml +2 -0
- data/app/views/admin/dashboard/index.html.haml +230 -0
- data/app/views/admin/forms/_form.html.haml +38 -0
- data/app/views/admin/forms/_tabs.html.haml +6 -0
- data/app/views/admin/forms/destroy.js.erb +1 -0
- data/app/views/admin/forms/edit.html.haml +2 -0
- data/app/views/admin/forms/index.html.haml +11 -0
- data/app/views/admin/forms/index.json.erb +20 -0
- data/app/views/admin/forms/new.html.haml +2 -0
- data/app/views/admin/geo_zones/_form.html.haml +20 -0
- data/app/views/admin/geo_zones/_list.html.haml +9 -0
- data/app/views/admin/geo_zones/edit.html.haml +3 -0
- data/app/views/admin/geo_zones/index.html.haml +49 -0
- data/app/views/admin/geo_zones/new.html.haml +3 -0
- data/app/views/admin/geo_zones/show.html.haml +4 -0
- data/app/views/admin/import/create_product.html.haml +2 -0
- data/app/views/admin/menus/_types_popups.html.haml +22 -0
- data/app/views/admin/orders/_address_form.html.haml +29 -0
- data/app/views/admin/orders/_form.html.haml +198 -0
- data/app/views/admin/orders/_list.html.haml +29 -0
- data/app/views/admin/orders/_products_popup.html.haml +15 -0
- data/app/views/admin/orders/create.html.haml +1 -0
- data/app/views/admin/orders/destroy.js.erb +1 -0
- data/app/views/admin/orders/edit.html.haml +1 -0
- data/app/views/admin/orders/index.html.haml +24 -0
- data/app/views/admin/orders/index.json.erb +48 -0
- data/app/views/admin/orders/show.html.haml +130 -0
- data/app/views/admin/product_types/_form.html.haml +46 -0
- data/app/views/admin/product_types/_list.html.haml +6 -0
- data/app/views/admin/product_types/_options_categories.html.haml +19 -0
- data/app/views/admin/product_types/_tabs.html.haml +6 -0
- data/app/views/admin/product_types/destroy.js.erb +1 -0
- data/app/views/admin/product_types/edit.html.haml +3 -0
- data/app/views/admin/product_types/index.html.haml +14 -0
- data/app/views/admin/product_types/index.json.erb +24 -0
- data/app/views/admin/product_types/new.html.haml +3 -0
- data/app/views/admin/product_types/show.html.haml +23 -0
- data/app/views/admin/products/_attributes.html.haml +37 -0
- data/app/views/admin/products/_cross_popup.html.haml +56 -0
- data/app/views/admin/products/_cross_sell_tr.html.haml +13 -0
- data/app/views/admin/products/_cross_sells.html.haml +1 -0
- data/app/views/admin/products/_form.html.haml +26 -0
- data/app/views/admin/products/_general.html.haml +153 -0
- data/app/views/admin/products/_list.html.haml +18 -0
- data/app/views/admin/products/_prices.html.haml +17 -0
- data/app/views/admin/products/_products_popup.html.haml +41 -0
- data/app/views/admin/products/_seo.html.haml +75 -0
- data/app/views/admin/products/_shippings.html.haml +0 -0
- data/app/views/admin/products/_sizes.html.haml +23 -0
- data/app/views/admin/products/_tabs.html.haml +2 -0
- data/app/views/admin/products/activate.js.erb +1 -0
- data/app/views/admin/products/destroy.js.erb +1 -0
- data/app/views/admin/products/edit.html.haml +1 -0
- data/app/views/admin/products/index.html.haml +20 -0
- data/app/views/admin/products/index.json.erb +65 -0
- data/app/views/admin/products/new.html.haml +1 -0
- data/app/views/admin/products/show.html.haml +158 -0
- data/app/views/admin/settings/_colissimo.html.haml +7 -0
- data/app/views/admin/settings/_godfather.html.haml +11 -0
- data/app/views/admin/settings/_google_shopping.html.haml +5 -0
- data/app/views/admin/settings/_payment.html.haml +63 -0
- data/app/views/admin/settings/_tabs.html.haml +5 -0
- data/app/views/admin/settings/edit.html.haml +33 -0
- data/app/views/admin/special_offers/_form.html.haml +88 -0
- data/app/views/admin/special_offers/_patterns.html.haml +151 -0
- data/app/views/admin/special_offers/_tabs.html.haml +5 -0
- data/app/views/admin/special_offers/_top_links.html.haml +6 -0
- data/app/views/admin/special_offers/activate.js.erb +1 -0
- data/app/views/admin/special_offers/destroy.js.erb +1 -0
- data/app/views/admin/special_offers/edit.html.haml +4 -0
- data/app/views/admin/special_offers/index.html.haml +15 -0
- data/app/views/admin/special_offers/index.json.erb +28 -0
- data/app/views/admin/special_offers/new.html.haml +2 -0
- data/app/views/admin/special_offers/show.html.haml +28 -0
- data/app/views/admin/special_offers/special_offer.html.haml +166 -0
- data/app/views/admin/statistics/index.html.haml +158 -0
- data/app/views/admin/transporter_rules/_delivery_rules.html.haml +83 -0
- data/app/views/admin/transporter_rules/_form.html.haml +90 -0
- data/app/views/admin/transporter_rules/_left_sidebar.html.haml +9 -0
- data/app/views/admin/transporter_rules/_sidebar.html.haml +10 -0
- data/app/views/admin/transporter_rules/_tabs.html.haml +8 -0
- data/app/views/admin/transporter_rules/activate.js.erb +1 -0
- data/app/views/admin/transporter_rules/destroy.js.erb +1 -0
- data/app/views/admin/transporter_rules/edit.html.haml +1 -0
- data/app/views/admin/transporter_rules/index.html.haml +13 -0
- data/app/views/admin/transporter_rules/index.json.erb +30 -0
- data/app/views/admin/transporter_rules/new.html.haml +1 -0
- data/app/views/admin/transporter_rules/show.html.haml +30 -0
- data/app/views/admin/users/_fields_for_addresses_deliveries.html.haml +38 -0
- data/app/views/admin/users/_fields_for_addresses_invoices.html.haml +34 -0
- data/app/views/admin/users/_form.html.haml +88 -0
- data/app/views/admin/users/edit.json.erb +35 -0
- data/app/views/admin/users/index.html.haml +12 -0
- data/app/views/admin/users/index.json.erb +32 -0
- data/app/views/admin/users/index2.html.haml +33 -0
- data/app/views/admin/users/show.html.haml +72 -0
- data/app/views/admin/vouchers/_form.html.haml +92 -0
- data/app/views/admin/vouchers/_tabs.html.haml +3 -0
- data/app/views/admin/vouchers/activate.js.erb +1 -0
- data/app/views/admin/vouchers/destroy.js.erb +1 -0
- data/app/views/admin/vouchers/index.html.haml +15 -0
- data/app/views/admin/vouchers/index.json.erb +28 -0
- data/app/views/admin/vouchers/new.html.haml +2 -0
- data/config/locales/activerecord/en.yml +6 -0
- data/config/locales/activerecord/fr.yml +18 -0
- data/config/locales/admin/address/en.yml +3 -0
- data/config/locales/admin/address/fr.yml +3 -0
- data/config/locales/admin/attribute/en.yml +76 -0
- data/config/locales/admin/attribute/fr.yml +75 -0
- data/config/locales/admin/brands/en.yml +24 -0
- data/config/locales/admin/brands/fr.yml +27 -0
- data/config/locales/admin/dashboard/en.yml +6 -0
- data/config/locales/admin/dashboard/fr.yml +6 -0
- data/config/locales/admin/order/en.yml +54 -0
- data/config/locales/admin/order/fr.yml +54 -0
- data/config/locales/admin/product/en.yml +105 -0
- data/config/locales/admin/product/fr.yml +106 -0
- data/config/locales/admin/settings/en.yml +90 -0
- data/config/locales/admin/settings/fr.yml +87 -0
- data/config/locales/admin/special_offer/en.yml +59 -0
- data/config/locales/admin/special_offer/fr.yml +60 -0
- data/config/locales/admin/transporter/en.yml +36 -0
- data/config/locales/admin/transporter/fr.yml +36 -0
- data/config/locales/admin/voucher/en.yml +3 -0
- data/config/locales/admin/voucher/fr.yml +3 -0
- data/config/locales/admin/wishlist/en.yml +89 -0
- data/config/locales/admin/wishlist/fr.yml +89 -0
- data/config/locales/common/en.yml +424 -0
- data/config/locales/common/fr.yml +422 -0
- data/config/routes.rb +109 -0
- data/config/search.example.yml +8 -0
- data/db/fixtures/currencies.yml +10 -0
- data/db/fixtures/currencies_exchanges_rates.yml +9 -0
- data/db/fixtures/page_translations.yml +11 -0
- data/db/fixtures/pages.yml +5 -0
- data/db/fixtures/people.yml +11 -0
- data/db/fixtures/product_type_translations.yml +11 -0
- data/db/fixtures/product_types.yml +2 -0
- data/db/migrate/20091009134433_create_attribute_values.rb +15 -0
- data/db/migrate/20091009134440_create_attribute_values_products.rb +14 -0
- data/db/migrate/20091009134448_create_attributes.rb +17 -0
- data/db/migrate/20091009134455_create_attributes_product_types.rb +14 -0
- data/db/migrate/20091009134525_create_carts.rb +15 -0
- data/db/migrate/20091009134532_create_cart_items.rb +14 -0
- data/db/migrate/20091009134609_create_cross_sellings_products.rb +11 -0
- data/db/migrate/20091009134616_create_currencies.rb +15 -0
- data/db/migrate/20091009134624_create_currencies_exchanges_rates.rb +13 -0
- data/db/migrate/20091009134631_create_dynamic_attribute_values.rb +17 -0
- data/db/migrate/20091009134659_create_order_details.rb +24 -0
- data/db/migrate/20091009134706_create_order_shippings.rb +16 -0
- data/db/migrate/20091009134714_create_orders.rb +21 -0
- data/db/migrate/20091009134721_create_packs_products.rb +13 -0
- data/db/migrate/20091009134805_create_product_types.rb +11 -0
- data/db/migrate/20091009134813_create_products.rb +37 -0
- data/db/migrate/20091009134821_create_products_wishlists.rb +13 -0
- data/db/migrate/20091009134947_create_wishlists.rb +12 -0
- data/db/migrate/20100323143123_create_geo_zones_transporter_rules.rb +12 -0
- data/db/migrate/20100414090950_create_brands.rb +15 -0
- data/db/migrate/20100414091706_create_sizes.rb +15 -0
- data/db/migrate/20100928123009_add_patronage_to_people.rb +20 -0
- data/db/migrate/20101007074306_create_product_price_variations.rb +13 -0
- data/db/migrate/20110311111210_create_forms.rb +13 -0
- data/db/migrate/20110311112646_attributes_forms.rb +13 -0
- data/db/migrate/20110322165950_add_payment_methods_to_settings.rb +13 -0
- data/db/migrate/20110405084454_add_colissimo_methods_to_settings.rb +13 -0
- data/db/migrate/20110516075553_add_google_infos_to_settings.rb +11 -0
- data/db/migrate/20110831164213_add_order_fields_to_addresses.rb +9 -0
- data/lib/CMCIC_Config.rb +16 -0
- data/lib/CMCIC_Tpe.rb +227 -0
- data/lib/forgeos/commerce.rb +9 -0
- data/lib/forgeos/commerce/admin_menu.rb +28 -0
- data/lib/forgeos/commerce/engine.rb +11 -0
- data/lib/forgeos/commerce/float.rb +10 -0
- data/lib/forgeos/commerce/statistics.rb +62 -0
- data/lib/forgeos/commerce/version.rb +5 -0
- data/lib/forgeos_commerce.rb +1 -0
- data/lib/special_offer.rb +61 -0
- data/lib/tasks/install.rake +9 -0
- data/lib/transporter.rb +26 -0
- data/lib/voucher.rb +41 -0
- data/recipes/deploy.rb +15 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +42 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +27 -0
- data/test/dummy/config/environments/production.rb +51 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/forgeos_commerce_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +539 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
- pack = form.object
|
2
|
+
.option-panel
|
3
|
+
.backgrounds.content-header
|
4
|
+
= link_to I18n.t(:product, :count => 2), '#', :class => 'small-icons panel'
|
5
|
+
.option-panel-content
|
6
|
+
%a#cross-product.backgrounds.button.right.look{ :href => "#" }
|
7
|
+
%span.big-icons.add-product
|
8
|
+
= I18n.t('pack.products.add').capitalize
|
9
|
+
#pack-products.sortable.cross_sells_table
|
10
|
+
#product_id{:style => 'display: none;'}
|
11
|
+
= pack.id
|
12
|
+
%table
|
13
|
+
%thead
|
14
|
+
%tr
|
15
|
+
%th= 'Image'
|
16
|
+
%th= 'Name'
|
17
|
+
%th= 'Price'
|
18
|
+
%th= 'Stock'
|
19
|
+
%th= 'Suppression'
|
20
|
+
%tbody.looks_products
|
21
|
+
- pack.cross_sellings.all(:select => '`products`.`id`, name, price, stock', :joins => [:translations]).each_with_index do |product, index|
|
22
|
+
= render :partial => 'cross_sell_tr', :locals => { :pack => pack, :product => product, :index => index, :_class => cycle("even", "odd")}
|
23
|
+
.clear
|
24
|
+
|
25
|
+
#cross-productSelectDialog.media-hoverlay
|
26
|
+
.media-hoverlay-header
|
27
|
+
= I18n.t('order.product.select').capitalize
|
28
|
+
#search.right.files
|
29
|
+
= fg_search
|
30
|
+
.backgrounds.search-form-files
|
31
|
+
.media-hoverlay-sidebar.grid_3.omega.alpha
|
32
|
+
.sidebar-content
|
33
|
+
%h2{ :class => 'small-icons products'}
|
34
|
+
= link_to_function I18n.t('product.all').capitalize, "select_all_elements_without_category()"
|
35
|
+
#cross_tree.tree-categories
|
36
|
+
%ul
|
37
|
+
- ProductType.all(:include => :translations, :order => 'product_type_translations.name').each do |p_type|
|
38
|
+
%li.folder
|
39
|
+
= link_to '#',:class => 'big-icons p_type', :id => p_type.id do
|
40
|
+
= p_type.name
|
41
|
+
%span
|
42
|
+
= p_type.products.count
|
43
|
+
- unless p_type.brands.empty?
|
44
|
+
%ul
|
45
|
+
- p_type.brands.each do |brand|
|
46
|
+
%li.folder
|
47
|
+
= link_to '#', :class => 'big-icons brand', :id => brand.id do
|
48
|
+
= brand.name
|
49
|
+
%span
|
50
|
+
= Product.all( :conditions => ["brand_id = ? && product_type_id = ?", brand.id, p_type.id ] ).count
|
51
|
+
.media-hoverlay-content
|
52
|
+
%table#table-products-cross.datatable.media.selectable_rows
|
53
|
+
%tr
|
54
|
+
%td
|
55
|
+
|
56
|
+
= dataTables_tag :id => 'table-products-cross', :url => forgeos_commerce.admin_products_path(:format => :json, :mode => 'selection'), :columns => ["{'sClass':'th-checkbox-container th_product_popup','bSearchable':false,'bSortable':false}","{'sTitle':'#{I18n.t(:name)}'}","{'sTitle':'#{I18n.t(:sku)}'}","{'sTitle':'#{I18n.t(:price, :count => 1)}'}","{'sTitle':'#{I18n.t(:stock, :count => 1)}'}","{'sTitle':'#{I18n.t(:product_type, :count => 1)}'}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}"], :autostart => false
|
@@ -0,0 +1,13 @@
|
|
1
|
+
%tr.ui-sortable{:class => _class}
|
2
|
+
%td
|
3
|
+
= image_tag product.pictures.first.public_filename(:thumb) unless product.pictures.empty?
|
4
|
+
%td
|
5
|
+
= product.name
|
6
|
+
%td
|
7
|
+
= price_with_currency product.price, 0
|
8
|
+
%td
|
9
|
+
.stocks
|
10
|
+
= product.stock
|
11
|
+
%td{:style => 'position: relative'}
|
12
|
+
= link_to('Supprimer', '#', :class => 'delete_product_tr')
|
13
|
+
= hidden_field_tag("product[cross_selling_ids][]", product.id, :class => 'block-selected')
|
@@ -0,0 +1 @@
|
|
1
|
+
= render :partial => 'cross_popup', :locals => { :form => f }
|
@@ -0,0 +1,26 @@
|
|
1
|
+
= render :partial => 'admin/menus/lang_switcher'
|
2
|
+
= render :partial => 'tabs'
|
3
|
+
= form_for [forgeos_commerce, :admin, product], :html => { :id => 'wrap', 'data-object_name' => product.class.model_name.singular } do |f|
|
4
|
+
#blocks-header.ui-tabs.ui-widget.ui-widget-content.ui-corner-all
|
5
|
+
%ul.ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all
|
6
|
+
%li.ui-state-default.ui-corner-top.ui-tabs-selected.ui-state-active= link_to 'Principal', '#general', :class => 'selected'
|
7
|
+
%li.ui-state-default.ui-corner-top= link_to t(:price, :count => 2), '#prices'
|
8
|
+
%li.ui-state-default.ui-corner-top= link_to t(:size, :count => 2), '#sizes'
|
9
|
+
%li.ui-state-default.ui-corner-top= link_to 'SEO', '#seo'
|
10
|
+
%li.ui-state-default.ui-corner-top= link_to t(:cross_selling, :count => 2), '#cross_sells'
|
11
|
+
.backgrounds.big-header
|
12
|
+
= f.text_field :name, :class => 'field_name big_orange_input'
|
13
|
+
.interact-links
|
14
|
+
= Forgeos_save_buttons [forgeos_commerce, :admin, :products]
|
15
|
+
#general
|
16
|
+
= render :partial => 'general', :locals => {:product => product, :f => f}
|
17
|
+
.clear
|
18
|
+
#prices
|
19
|
+
= render :partial => 'prices', :locals => {:product => product, :f => f}
|
20
|
+
#sizes
|
21
|
+
= render :partial => 'sizes', :locals => {:product => product, :f => f}
|
22
|
+
#seo
|
23
|
+
= render :partial => 'seo', :locals => {:product => product, :f => f}
|
24
|
+
#cross_sells
|
25
|
+
= render :partial => 'cross_sells', :locals => {:product => product, :f => f}
|
26
|
+
.clear
|
@@ -0,0 +1,153 @@
|
|
1
|
+
#product.grid_12.alpha
|
2
|
+
.grid_9.omega
|
3
|
+
.grid_4.alpha.omega
|
4
|
+
= label_tag :price, "#{t('price', :count => 1).capitalize}<sup class=\"required\">*</sup>".html_safe
|
5
|
+
= f.text_field :price, :class => 'backgrounds grid_2 alpha omega', :id => 'price'
|
6
|
+
%span.currency
|
7
|
+
= current_currency.html
|
8
|
+
= f.label :sku, t('sku')
|
9
|
+
%div
|
10
|
+
= f.text_field :sku
|
11
|
+
.tool-tip-me
|
12
|
+
.stock
|
13
|
+
= f.label :stock, t('stock', :count => 1).capitalize
|
14
|
+
= f.text_field(:stock, :size => 5)
|
15
|
+
.stock
|
16
|
+
= f.label :stop_sales, t('product.stop_sales').capitalize
|
17
|
+
= f.check_box :stop_sales
|
18
|
+
-#.tool-tip-me
|
19
|
+
-# .stock
|
20
|
+
-# %label{ :for => "product-stock" }
|
21
|
+
-# Stock
|
22
|
+
-# %div
|
23
|
+
-# %select#product-stock{ :name => "product-stock" }
|
24
|
+
-# %option{ :selected => "selected", :value => "default" }
|
25
|
+
-# Track low stock level
|
26
|
+
-# #product-in-stock.tool-tip-content
|
27
|
+
-# .content
|
28
|
+
-# = f.label :stock, t('stock', :count => 1).capitalize
|
29
|
+
-# = f.text_field(:stock, :class => 'background')
|
30
|
+
-# %label{ :for => "out-stock-action" }
|
31
|
+
-# if out of stock
|
32
|
+
-# %div
|
33
|
+
-# %select
|
34
|
+
-# %option{ :selected => "selected", :value => "0" }
|
35
|
+
-# stop sales
|
36
|
+
-# .clear
|
37
|
+
-# .clear
|
38
|
+
|
39
|
+
|
40
|
+
#product-images.grid_3.omega
|
41
|
+
#featured-picture
|
42
|
+
= t('media.picture.featured').capitalize
|
43
|
+
= hidden_field_tag "#{f.object_name}[attachment_ids][]"
|
44
|
+
%ul.sortable
|
45
|
+
- product.pictures.each do |picture|
|
46
|
+
%li{ :class => (picture.id == product.picture_ids.first) ? 'first-image' : ''}
|
47
|
+
= link_to_function '', "$(this).parents('li').remove(); check_product_first_image() ", :title => t('media.picture.destroy.confirm').capitalize, :class => 'big-icons trash'
|
48
|
+
= link_to '', [forgeos_core, :edit, :admin, picture], :class => 'big-icons edit', :popup => true
|
49
|
+
= hidden_field_tag "#{f.object_name}[attachment_ids][]", picture.id, :id => "attachment_#{picture.id}"
|
50
|
+
= image_tag picture.public_filename('')
|
51
|
+
.handler
|
52
|
+
.inner
|
53
|
+
%li.clear
|
54
|
+
.clear
|
55
|
+
%a.add-image.backgrounds.button{ :href => "#", "data-callback" => 'add_picture_to_product' }
|
56
|
+
%span.big-icons.add-picture= t('media.picture.add').capitalize
|
57
|
+
.clear
|
58
|
+
.grid_12.omega
|
59
|
+
= f.label :summary, t('summary').capitalize
|
60
|
+
%div{ :style => 'clear: left;'}
|
61
|
+
= f.text_area :summary, {:cols => 80, :rows => 2}
|
62
|
+
= f.label :description, t('description').capitalize
|
63
|
+
%div{ :style => 'clear: left;'}
|
64
|
+
= f.text_area :description, :cols => 80, :class => 'mceEditor'
|
65
|
+
.clear
|
66
|
+
.option-panel.open
|
67
|
+
.backgrounds.content-header
|
68
|
+
= link_to t('attributes'), '#', :class => 'small-icons panel'
|
69
|
+
#product-types-panel.option-panel-content
|
70
|
+
= render :partial => 'attributes', :locals => { :product_type => product.product_type, :product => product }
|
71
|
+
.clear
|
72
|
+
.option-panel
|
73
|
+
.backgrounds.content-header
|
74
|
+
= link_to t('media.linked'), '#', :class => 'small-icons panel'
|
75
|
+
.option-panel-content
|
76
|
+
%a.add-file.backgrounds.button.right{ :href => "#", "data-callback" => 'add_attachment_to_product' }
|
77
|
+
%span.big-icons.add-media
|
78
|
+
= t('add_file').capitalize
|
79
|
+
#product-files.grid_9.sortable
|
80
|
+
- product.attachments.where{{ :attachments => { :type.not_eq => 'Picture'}}}.each do |attachment|
|
81
|
+
= block_container f.object_name, 'attachment', attachment do
|
82
|
+
= attachment.filename
|
83
|
+
%span.file-size
|
84
|
+
= "- #{attachment.size} Ko"
|
85
|
+
.clear
|
86
|
+
.option-panel.disabled
|
87
|
+
.backgrounds.content-header
|
88
|
+
= link_to t('product.variant', :count => 2), '#', :class => 'small-icons panel'
|
89
|
+
.option-panel-content
|
90
|
+
%a.backgrounds.button.right{ :href => "#" }
|
91
|
+
%span.small-icons.add-variant
|
92
|
+
Create a variant
|
93
|
+
.block-container
|
94
|
+
%span.block-type
|
95
|
+
%span.block-name
|
96
|
+
%a.small-icons.panel{ :href => "#" }
|
97
|
+
Domaine de Villemont 2008 37cl
|
98
|
+
.variant
|
99
|
+
.clear
|
100
|
+
|
101
|
+
- if product.kind_of?(Pack)
|
102
|
+
= render :partial => 'products_popup', :locals => { :form => f }
|
103
|
+
|
104
|
+
#right-sidebar.grid_4.omega
|
105
|
+
.step.status.open
|
106
|
+
%div
|
107
|
+
= f.select :active, [[t('unpublished'), 0], [t('published'), 1]], { :selected => (product.active ? 1 : 0) }
|
108
|
+
.clear
|
109
|
+
= f.label :product_type_id, "#{t('product_type', :count => 1).capitalize}<sup class=\"required\">*</sup>"
|
110
|
+
%div
|
111
|
+
- prompt = "#{t('please_select')} #{t('product_type.one')}"
|
112
|
+
= f.collection_select :product_type_id, ProductType.all(:include => :translations, :order => 'product_type_translations.name'), :id, :name, { :prompt => prompt }
|
113
|
+
.clear
|
114
|
+
= f.label :brand_id, t('brand.one')
|
115
|
+
%div
|
116
|
+
= f.collection_select :brand_id, Brand.all(:order => 'name DESC'), :id, :name, { :prompt => "#{t('please_select')} #{t('brand.one')}" }
|
117
|
+
.clear
|
118
|
+
= f.check_box :on_first_page
|
119
|
+
= t('product.on_first_page').capitalize
|
120
|
+
.clear
|
121
|
+
= f.check_box :offer_month
|
122
|
+
= t('product.offer_month').capitalize
|
123
|
+
|
124
|
+
|
125
|
+
.step
|
126
|
+
- unless product.new_record?
|
127
|
+
= link_to t('product.duplicate').capitalize, [forgeos_commerce, :duplicate, :admin, product], :class => 'small-icons duplicate'
|
128
|
+
= link_to t('product.destroy.action').capitalize, [forgeos_commerce, :admin, product], :confirm => (product.redirection_product ? t('product.destroy.redirection_product.confirm', :product => product.redirection_product.sku) : t('product.destroy.redirection_product.none')), :method => :delete, :class => 'small-icons delete'
|
129
|
+
#products_associated_collection.step.open
|
130
|
+
= link_to(t('product.associated_collection', :count => 2), '#', :class => 'small-icons step-title')
|
131
|
+
= hidden_field_tag "#{f.object_name}[category_ids][]"
|
132
|
+
#association-product-tree.inner-step
|
133
|
+
%ul
|
134
|
+
= render :partial => 'admin/categories/associated_elements', :locals => { :association_id => 'category_ids', :element => product, :category_ids => product.category_ids, :categories => ProductCategory.find_all_by_parent_id(nil) }
|
135
|
+
#products_delivery.step.open
|
136
|
+
= link_to t(:delivery), '#', :class => 'small-icons step-title'
|
137
|
+
.inner-step.weight
|
138
|
+
%label{ :for => "weight" }
|
139
|
+
= t(:weight).capitalize
|
140
|
+
%br
|
141
|
+
= f.text_field :weight, :class => 'product_weight', :id => 'weight'
|
142
|
+
= t(:short, :scope => [:unit, :weight])
|
143
|
+
.step.disabled
|
144
|
+
= link_to t(:graphic_template, :count => 1), '#', :class => 'small-icons step-title'
|
145
|
+
.inner-step.glossy
|
146
|
+
%select{ :name => "design" }
|
147
|
+
%option{ :selected => "selected", :value => "default" }
|
148
|
+
Corporate blue design
|
149
|
+
%option{ :value => "no" }
|
150
|
+
Corporate green design
|
151
|
+
.clear
|
152
|
+
.clear
|
153
|
+
= render :partial => 'attachments_popups'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= display_standard_flashes
|
2
|
+
%table#table.datatable
|
3
|
+
%thead
|
4
|
+
%tr
|
5
|
+
%th
|
6
|
+
= I18n.t('reference').capitalize
|
7
|
+
%th
|
8
|
+
= I18n.t('name').capitalize
|
9
|
+
%th
|
10
|
+
= I18n.t('description').capitalize
|
11
|
+
%th
|
12
|
+
= I18n.t('price', :count => 1).capitalize
|
13
|
+
%th
|
14
|
+
= I18n.t('stock', :count=>1).capitalize
|
15
|
+
%th
|
16
|
+
= I18n.t('active').capitalize
|
17
|
+
?
|
18
|
+
%tbody
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.grid_12.omega
|
2
|
+
.fieldset.open
|
3
|
+
%h3= t(:price_variation, :count => 2)
|
4
|
+
.option-panel-content
|
5
|
+
#price-variations{ 'data-quantity' => t(:quantity, :scope => [:helpers,:label,:product_price_variation]), 'data-discount' => t(:discount, :scope => [:helpers,:label,:product_price_variation])}
|
6
|
+
= f.fields_for :price_variations do |price_variation|
|
7
|
+
.line
|
8
|
+
= price_variation.text_field :quantity, :size => 2, :class => 'center'
|
9
|
+
= price_variation.label :quantity
|
10
|
+
= price_variation.text_field :discount, :size => 2, :class => 'center'
|
11
|
+
= price_variation.label :discount
|
12
|
+
= link_to '', '#', :class => 'small-icons destroy-link destroy'
|
13
|
+
= price_variation.hidden_field :_destroy, :class => 'destroy'
|
14
|
+
= link_to t('price_variation.add'), '#', :class => 'small-icons add-link gray', :id => 'add-price-variation'
|
15
|
+
.clear
|
16
|
+
|
17
|
+
#right-sidebar.grid_4.omega
|
@@ -0,0 +1,41 @@
|
|
1
|
+
- pack = form.object
|
2
|
+
.option-panel.open
|
3
|
+
.backgrounds.content-header
|
4
|
+
= link_to I18n.t(:product, :count => 2), '#', :class => 'small-icons panel'
|
5
|
+
.option-panel-content
|
6
|
+
%a#add-product.backgrounds.button.right{ :href => "#" }
|
7
|
+
%span.big-icons.add-product
|
8
|
+
= I18n.t('pack.products.add').capitalize
|
9
|
+
#pack-products.grid_9.sortable
|
10
|
+
- pack.products.each do |product|
|
11
|
+
.block-container.ui-corner-all
|
12
|
+
%span.block-type
|
13
|
+
%span.handler
|
14
|
+
%span.inner
|
15
|
+
= product.sku
|
16
|
+
%span.block-name
|
17
|
+
= product.name
|
18
|
+
%span.file-size
|
19
|
+
\ -
|
20
|
+
= price_with_currency product.price
|
21
|
+
= link_to('', '#', :class => 'big-icons gray-destroy')
|
22
|
+
= hidden_field_tag("pack[product_ids][]", product.id, :class => 'block-selected')
|
23
|
+
.clear
|
24
|
+
|
25
|
+
#pack-productSelectDialog.media-hoverlay
|
26
|
+
.media-hoverlay-header
|
27
|
+
= I18n.t('order.product.select').capitalize
|
28
|
+
#search.right.files
|
29
|
+
= fg_search
|
30
|
+
.backgrounds.search-form-files
|
31
|
+
.media-hoverlay-sidebar.grid_3.omega.alpha
|
32
|
+
.sidebar-content
|
33
|
+
%h2{ :class => 'small-icons products'}
|
34
|
+
= link_to_function I18n.t('product.all').capitalize, "select_all_elements_without_category()"
|
35
|
+
#product-tree.init-tree.a-tree
|
36
|
+
.media-hoverlay-content
|
37
|
+
%table#table-products.datatable.media.selectable_rows
|
38
|
+
%tr
|
39
|
+
%td
|
40
|
+
|
41
|
+
= dataTables_tag :id => 'table-products', :url => forgeos_commerce.admin_products_path(:format => :json, :mode => 'selection'), :columns => ["{'sClass':'th-checkbox-container th_product_popup','bSearchable':false,'bSortable':false}","{'sTitle':'#{I18n.t(:name)}'}","{'sTitle':'#{I18n.t(:sku)}'}","{'sTitle':'#{I18n.t(:price, :count => 1)}'}","{'sTitle':'#{I18n.t(:stock, :count => 1)}'}","{'sTitle':'#{I18n.t(:product_type, :count => 1)}'}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}"], :autostart => false
|
@@ -0,0 +1,75 @@
|
|
1
|
+
.grid_12.alpha
|
2
|
+
.fieldset.open
|
3
|
+
%h3.permalink
|
4
|
+
= t('permalink').capitalize
|
5
|
+
\:
|
6
|
+
.option-panel-content
|
7
|
+
= "#{request.protocol}#{request.host}#{seo_product_path(f.object.class.new(:url=>' ', :category_ids => f.object.category_ids, :product_type_id => f.object.product_type_id, :brand_id => f.object.brand_id))}"
|
8
|
+
= f.text_field :url
|
9
|
+
/ #products_tags.step.open
|
10
|
+
/ = link_to t(:tag, :count => 2), '#', :class => 'small-icons step-title'
|
11
|
+
/ .inner-step.tags
|
12
|
+
/ .wrap_tags
|
13
|
+
/ = hidden_field_tag 'tag_list[]', ''
|
14
|
+
/ %input#tag.backgrounds{ :name => "tag", :type => "text", :title => t('tag_enter').capitalize, :class => 'defaultValue' }
|
15
|
+
/ - product.tag_list.each do |tag|
|
16
|
+
/ %span
|
17
|
+
/ = tag
|
18
|
+
/ = hidden_field_tag 'tag_list[]', tag
|
19
|
+
/ = link_to ' ', '#', :class => 'big-icons gray-destroy'
|
20
|
+
/ .clear
|
21
|
+
.fieldset.open
|
22
|
+
%h3= t(:meta_info,:count => 1)
|
23
|
+
.option-panel-content.meta
|
24
|
+
- product.build_meta_info unless product.meta_info
|
25
|
+
= f.fields_for :meta_info do |meta_info|
|
26
|
+
%p
|
27
|
+
%span
|
28
|
+
= t('title').capitalize
|
29
|
+
\:
|
30
|
+
%br
|
31
|
+
= meta_info.text_field :title, :class => 'text', :size => 90
|
32
|
+
%p
|
33
|
+
%span
|
34
|
+
= t('description').capitalize
|
35
|
+
\:
|
36
|
+
%br
|
37
|
+
= meta_info.text_area :description, :cols => 90, :rows => 5, :class => 'text'
|
38
|
+
%p
|
39
|
+
%span
|
40
|
+
= t('keyword', :count => 2).capitalize
|
41
|
+
\:
|
42
|
+
%br
|
43
|
+
= meta_info.text_area :keywords, :cols => 90, :rows => 5, :class => 'text'
|
44
|
+
.fieldset.open
|
45
|
+
%h3= t('product.redirection_product.label')
|
46
|
+
.option-panel-content
|
47
|
+
= f.hidden_field :redirection_product_id, :id => 'redirection_product_id'
|
48
|
+
#redirection_product
|
49
|
+
- if redirection_product = product.redirection_product_without_deleted
|
50
|
+
.block-container
|
51
|
+
%span.block-type= redirection_product.sku
|
52
|
+
%span.block-name
|
53
|
+
= redirection_product.name
|
54
|
+
%span.file-size= price_with_currency(redirection_product.price)
|
55
|
+
|
56
|
+
%a#add-redirection-product.backgrounds.button.right{ :href => "#" }
|
57
|
+
%span.big-icons.add-product
|
58
|
+
= I18n.t('product.redirection_product.change').capitalize
|
59
|
+
#redirection-productSelectDialog.media-hoverlay
|
60
|
+
.media-hoverlay-header
|
61
|
+
= I18n.t('order.product.select').capitalize
|
62
|
+
#search.right.files
|
63
|
+
= fg_search
|
64
|
+
.backgrounds.search-form-files
|
65
|
+
.media-hoverlay-sidebar.grid_3.omega.alpha
|
66
|
+
.sidebar-content
|
67
|
+
%h2{ :class => 'small-icons products'}
|
68
|
+
= link_to_function I18n.t('product.all').capitalize, "select_all_elements_without_category()"
|
69
|
+
#product-tree.init-tree.a-tree
|
70
|
+
.media-hoverlay-content
|
71
|
+
%table#table-redirections.datatable.media.selectable_rows
|
72
|
+
%tr
|
73
|
+
%td
|
74
|
+
|
75
|
+
= dataTables_tag :id => 'table-redirections', :url => forgeos_commerce.admin_products_path(:format => :json, :mode => 'selection'), :columns => ["{'sClass':'th-checkbox-container th_product_popup','bSearchable':false,'bSortable':false}","{'sTitle':'#{I18n.t(:name)}'}","{'sTitle':'#{I18n.t(:sku)}'}","{'sTitle':'#{I18n.t(:price, :count => 1)}'}","{'sTitle':'#{I18n.t(:stock, :count => 1)}'}","{'sTitle':'#{I18n.t(:product_type, :count => 1)}'}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}","{ 'bVisible': false}"], :autostart => false
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%table#product_sizes
|
2
|
+
%thead
|
3
|
+
%tr
|
4
|
+
%th
|
5
|
+
Nom
|
6
|
+
%th
|
7
|
+
Stock
|
8
|
+
%th
|
9
|
+
Suppression
|
10
|
+
%tbody
|
11
|
+
= f.fields_for :sizes do |s|
|
12
|
+
%tr{ :class => cycle('even','odd')}
|
13
|
+
%td
|
14
|
+
= s.text_field :name
|
15
|
+
%td
|
16
|
+
= s.text_field :quantity
|
17
|
+
%td
|
18
|
+
= s.hidden_field :id
|
19
|
+
= s.hidden_field :_destroy, :class => 'delete'
|
20
|
+
= s.hidden_field :position
|
21
|
+
= link_to 'supprimer', '#', :class => 'remove_this_size'
|
22
|
+
= link_to 'add a size', '#', :class => 'add_a_size'
|
23
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
toggleActivate('#<%= polymorphic_html_id @product, 'show' -%>');
|
@@ -0,0 +1 @@
|
|
1
|
+
removedataTablesRow('#<%= polymorphic_html_id @product, 'destroy' -%>');
|