opensteam 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +78 -0
- data/LICENSE +345 -0
- data/{README.txt → README.rdoc} +20 -17
- data/Rakefile +40 -0
- data/generators/opensteam/opensteam_generator.rb +95 -194
- data/generators/opensteam/templates/{controllers/administration → app/controllers/admin}/inventories_controller.rb +4 -4
- data/generators/opensteam/templates/app/controllers/admin/invoices_controller.rb +106 -0
- data/generators/opensteam/templates/app/controllers/admin/orders_controller.rb +113 -0
- data/generators/opensteam/templates/app/controllers/admin/search_controller.rb +17 -0
- data/generators/opensteam/templates/app/controllers/admin/shipments_controller.rb +106 -0
- data/generators/opensteam/templates/app/controllers/admin/users_controller.rb +99 -0
- data/generators/opensteam/templates/app/controllers/admin_controller.rb +40 -0
- data/generators/opensteam/templates/app/controllers/cart_controller.rb +94 -0
- data/generators/opensteam/templates/app/controllers/checkout_controller.rb +139 -0
- data/generators/opensteam/templates/app/controllers/profile/infos_controller.rb +52 -0
- data/generators/opensteam/templates/app/controllers/profile/orders_controller.rb +105 -0
- data/generators/opensteam/templates/app/controllers/profile_controller.rb +37 -0
- data/generators/opensteam/templates/app/controllers/searches_controller.rb +23 -0
- data/generators/opensteam/templates/app/controllers/user_sessions_controller.rb +38 -0
- data/generators/opensteam/templates/app/controllers/users_controller.rb +40 -0
- data/generators/opensteam/templates/{controllers → app/controllers}/webshop_controller.rb +35 -13
- data/generators/opensteam/templates/app/helpers/admin_helper.rb +40 -0
- data/generators/opensteam/templates/app/helpers/users_helper.rb +53 -0
- data/generators/opensteam/templates/app/helpers/webshop_helper.rb +91 -0
- data/generators/opensteam/templates/app/models/search.rb +36 -0
- data/generators/opensteam/templates/{views/administration → app/views/admin}/_address.html.erb +0 -0
- data/generators/opensteam/templates/app/views/admin/_nav.html.erb +5 -0
- data/generators/opensteam/templates/app/views/admin/catalog.html.erb +5 -0
- data/generators/opensteam/templates/app/views/admin/index.html.erb +21 -0
- data/generators/opensteam/templates/{views/administration → app/views/admin}/inventories/edit.html.erb +10 -9
- data/generators/opensteam/templates/{views/administration → app/views/admin}/inventories/index.html.erb +3 -3
- data/generators/opensteam/templates/{views/administration → app/views/admin}/inventories/new.html.erb +3 -3
- data/generators/opensteam/templates/app/views/admin/inventories/show.html.erb +46 -0
- data/generators/opensteam/templates/app/views/admin/invoices/_invoice.html.erb +12 -0
- data/generators/opensteam/templates/app/views/admin/invoices/_invoices.html.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/invoices/index.html.erb +6 -0
- data/generators/opensteam/templates/app/views/admin/invoices/new.html.erb +54 -0
- data/generators/opensteam/templates/app/views/admin/invoices/show.html.erb +55 -0
- data/generators/opensteam/templates/app/views/admin/orders/_event.html.erb +5 -0
- data/generators/opensteam/templates/app/views/admin/orders/_order.html.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/orders/_order_item.html.erb +10 -0
- data/generators/opensteam/templates/app/views/admin/orders/_orders.html.erb +19 -0
- data/generators/opensteam/templates/app/views/admin/orders/index.html.erb +14 -0
- data/generators/opensteam/templates/app/views/admin/orders/livesearch.rjs +6 -0
- data/generators/opensteam/templates/app/views/admin/orders/show.html.erb +58 -0
- data/generators/opensteam/templates/app/views/admin/products.html.erb +8 -0
- data/generators/opensteam/templates/app/views/admin/properties.html.erb +7 -0
- data/generators/opensteam/templates/app/views/admin/sales.html.erb +5 -0
- data/generators/opensteam/templates/app/views/admin/shipments/_shipment.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/shipments/_shipments.html.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/shipments/index.html.erb +6 -0
- data/generators/opensteam/templates/app/views/admin/shipments/new.html.erb +51 -0
- data/generators/opensteam/templates/app/views/admin/shipments/show.html.erb +55 -0
- data/generators/opensteam/templates/app/views/admin/users/_admins.html.erb +26 -0
- data/generators/opensteam/templates/app/views/admin/users/_admins_header.html.erb +10 -0
- data/generators/opensteam/templates/app/views/admin/users/_customer.html.erb +32 -0
- data/generators/opensteam/templates/app/views/admin/users/_customers.html.erb +29 -0
- data/generators/opensteam/templates/app/views/admin/users/_customers_header.html.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/users/_user_fields.html.erb +9 -0
- data/generators/opensteam/templates/app/views/admin/users/_users.html.erb +29 -0
- data/generators/opensteam/templates/app/views/admin/users/_users_header.html.erb +11 -0
- data/generators/opensteam/templates/app/views/admin/users/edit.html.erb +6 -0
- data/generators/opensteam/templates/app/views/admin/users/index.html.erb +7 -0
- data/generators/opensteam/templates/app/views/admin/users/new.html.erb +6 -0
- data/generators/opensteam/templates/app/views/admin/users/show.html.erb +34 -0
- data/generators/opensteam/templates/app/views/admin/users.html.erb +4 -0
- data/generators/opensteam/templates/{views → app/views}/administration_mailer/order_admin.erb +0 -0
- data/generators/opensteam/templates/{views → app/views}/administration_mailer/order_customer.erb +0 -0
- data/generators/opensteam/templates/app/views/cart/_cart.html.erb +8 -0
- data/generators/opensteam/templates/{views/webshop → app/views/cart}/_cart_content.html.erb +7 -10
- data/generators/opensteam/templates/app/views/cart/index.html.erb +5 -0
- data/generators/opensteam/templates/app/views/cart/update.rjs +1 -0
- data/generators/opensteam/templates/app/views/checkout/intro.html.erb +18 -0
- data/generators/opensteam/templates/{views → app/views}/checkout/outro.html.erb +0 -1
- data/generators/opensteam/templates/{views → app/views}/checkout/payment.html.erb +0 -0
- data/generators/opensteam/templates/app/views/checkout/shipping.html.erb +45 -0
- data/generators/opensteam/templates/app/views/checkout/show_cart.html.erb +13 -0
- data/generators/opensteam/templates/{views → app/views}/checkout/update_cart_content.rjs +0 -0
- data/generators/opensteam/templates/{views → app/views}/common/_cart.html.erb +2 -2
- data/generators/opensteam/templates/{views → app/views}/common/_cart_content.html.erb +1 -1
- data/generators/opensteam/templates/app/views/common/_footer.html.erb +1 -0
- data/generators/opensteam/templates/app/views/common/_header.html.erb +4 -0
- data/generators/opensteam/templates/app/views/common/_header_flash.html.erb +3 -0
- data/generators/opensteam/templates/app/views/common/_signup_fields.html.erb +16 -0
- data/generators/opensteam/templates/app/views/common/_top_links.html.erb +10 -0
- data/generators/opensteam/templates/app/views/layouts/admin.html.erb +45 -0
- data/generators/opensteam/templates/app/views/layouts/profile.html.erb +45 -0
- data/generators/opensteam/templates/app/views/layouts/webshop.html.erb +51 -0
- data/generators/opensteam/templates/app/views/profile/_customer_sidebar.html.erb +12 -0
- data/generators/opensteam/templates/app/views/profile/index.html.erb +11 -0
- data/generators/opensteam/templates/app/views/profile/infos/_customer.html.erb +5 -0
- data/generators/opensteam/templates/app/views/profile/infos/edit.html.erb +25 -0
- data/generators/opensteam/templates/app/views/profile/infos/edit_password.html.erb +26 -0
- data/generators/opensteam/templates/app/views/profile/orders/_order.html.erb +11 -0
- data/generators/opensteam/templates/app/views/profile/orders/_order_item.html.erb +10 -0
- data/generators/opensteam/templates/app/views/profile/orders/_orders.html.erb +19 -0
- data/generators/opensteam/templates/app/views/profile/orders/index.html.erb +14 -0
- data/generators/opensteam/templates/app/views/profile/orders/show.html.erb +48 -0
- data/generators/opensteam/templates/app/views/searches/_search_bar.html.erb +5 -0
- data/generators/opensteam/templates/app/views/searches/new.html.erb +23 -0
- data/generators/opensteam/templates/app/views/searches/show.html.erb +1 -0
- data/generators/opensteam/templates/app/views/user_sessions/new.html.erb +14 -0
- data/generators/opensteam/templates/app/views/users/_user_bar.html.erb +5 -0
- data/generators/opensteam/templates/app/views/users/index.html.erb +27 -0
- data/generators/opensteam/templates/app/views/users/new.html.erb +7 -0
- data/generators/opensteam/templates/app/views/users/show.html.erb +5 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/_inventory_content.html.erb +0 -0
- data/generators/opensteam/templates/app/views/webshop/_nav.html.erb +6 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/add_inventory_to_cart.rjs +0 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/add_to_cart_with_parameters.rjs +0 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/del_item.rjs +0 -0
- data/generators/opensteam/templates/app/views/webshop/index.html.erb +11 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/inventory.rjs +0 -0
- data/generators/opensteam/templates/{views → app/views}/webshop/show.html.erb +15 -15
- data/generators/opensteam/templates/config/initializers/init_states.rb +68 -0
- data/generators/opensteam/templates/{init → config/initializers}/opensteam.rb +6 -0
- data/generators/opensteam/templates/config/initializers/opensteam_model_tables.rb +57 -0
- data/generators/opensteam/templates/db/migrate/20080609095714_create_profiles.rb +14 -0
- data/generators/opensteam/templates/{migrations/create_sessions.rb → db/migrate/20080609095720_create_sessions.rb} +0 -0
- data/generators/opensteam/templates/db/migrate/20080609095721_create_users.rb +29 -0
- data/generators/opensteam/templates/{migrations/create_addresses.rb → db/migrate/20080609095723_create_addresses.rb} +0 -0
- data/generators/opensteam/templates/{migrations/create_customers.rb → db/migrate/20080609095724_create_customers.rb} +0 -0
- data/generators/opensteam/templates/db/migrate/20080609095725_create_dummy_users.rb +21 -0
- data/generators/opensteam/templates/{migrations/create_inventories.rb → db/migrate/20080609095726_create_inventories.rb} +0 -0
- data/generators/opensteam/templates/{migrations/create_inventories_properties.rb → db/migrate/20080609095727_create_inventories_properties.rb} +0 -0
- data/generators/opensteam/templates/{migrations/create_order_items.rb → db/migrate/20080609095728_create_order_items.rb} +5 -0
- data/generators/opensteam/templates/db/migrate/20080609095729_create_orders.rb +32 -0
- data/generators/opensteam/templates/{migrations/create_payment_types.rb → db/migrate/20080609095730_create_payment_types.rb} +0 -0
- data/generators/opensteam/templates/{migrations/create_properties.rb → db/migrate/20080609095731_create_properties.rb} +0 -0
- data/generators/opensteam/templates/db/migrate/20080623075613_create_states.rb +13 -0
- data/generators/opensteam/templates/db/migrate/20080624132807_create_searches.rb +20 -0
- data/generators/opensteam/templates/db/migrate/20080630114155_create_state_histories.rb +14 -0
- data/generators/opensteam/templates/db/migrate/20080714131513_create_invoices.rb +20 -0
- data/generators/opensteam/templates/db/migrate/20080714131650_create_shipments.rb +19 -0
- data/generators/opensteam/templates/lib/authenticated_system.rb +201 -0
- data/generators/opensteam/templates/lib/authentication/by_cookie_token.rb +90 -0
- data/generators/opensteam/templates/lib/authentication/by_password.rb +68 -0
- data/generators/opensteam/templates/lib/authentication.rb +46 -0
- data/generators/opensteam/templates/lib/states/invoice/finished.rb +6 -0
- data/generators/opensteam/templates/lib/states/invoice/payment_received.rb +8 -0
- data/generators/opensteam/templates/lib/states/invoice/pending.rb +6 -0
- data/generators/opensteam/templates/lib/states/invoice/waiting_for_payment.rb +5 -0
- data/generators/opensteam/templates/lib/states/order/finished.rb +6 -0
- data/generators/opensteam/templates/lib/states/order/pending.rb +19 -0
- data/generators/opensteam/templates/lib/states/order/processing.rb +11 -0
- data/generators/opensteam/templates/lib/states/shipment/finished.rb +6 -0
- data/generators/opensteam/templates/lib/states/shipment/pending.rb +5 -0
- data/generators/opensteam/templates/lib/tasks/opensteam.rake +114 -0
- data/generators/opensteam/templates/public/images/athmo_background.jpg +0 -0
- data/generators/opensteam/templates/public/images/bg.jpg +0 -0
- data/generators/opensteam/templates/public/images/cart_big.gif +0 -0
- data/generators/opensteam/templates/public/images/cross.png +0 -0
- data/generators/opensteam/templates/public/images/enter.gif +0 -0
- data/generators/opensteam/templates/public/images/menu_background.jpg +0 -0
- data/generators/opensteam/templates/public/images/opensteam_background.jpg +0 -0
- data/generators/opensteam/templates/public/images/opensteam_logo1.jpg +0 -0
- data/generators/opensteam/templates/public/images/opensteam_petstore_logo1.jpg +0 -0
- data/generators/opensteam/templates/public/images/opensteam_store_logo.jpg +0 -0
- data/generators/opensteam/templates/public/images/os_logo.gif +0 -0
- data/generators/opensteam/templates/public/images/slogan.png +0 -0
- data/generators/opensteam/templates/public/images/tick.png +0 -0
- data/generators/opensteam/templates/public/images/zoom.png +0 -0
- data/generators/opensteam/templates/public/index.html +19 -36
- data/generators/opensteam/templates/public/javascripts/opensteam.js +30 -0
- data/generators/opensteam/templates/public/stylesheets/opensteam_newdesign.css +188 -0
- data/generators/opensteam/templates/public/stylesheets/opensteam_white.css +168 -0
- data/generators/opensteam/templates/public/stylesheets/webshop.css +0 -1
- data/generators/opensteam/templates/tasks/opensteam.rake +1 -1
- data/generators/opensteam/templates/{fixtures → test/fixtures}/inventories.yml +0 -0
- data/generators/opensteam/templates/{fixtures → test/fixtures}/inventories_properties.yml +0 -0
- data/generators/opensteam/templates/{fixtures → test/fixtures}/product_animals.yml +0 -0
- data/generators/opensteam/templates/{fixtures → test/fixtures}/product_dog_foods.yml +0 -0
- data/generators/opensteam/templates/{fixtures → test/fixtures}/properties.yml +0 -0
- data/generators/opensteam_product/opensteam_product_generator.rb +25 -9
- data/generators/opensteam_product/templates/controllers/product_controller.rb +5 -4
- data/generators/opensteam_product/templates/migration.rb +2 -1
- data/generators/opensteam_product/templates/models/product.rb +1 -0
- data/generators/opensteam_product/templates/views/{administration → admin}/_attributes.html.erb +1 -1
- data/generators/opensteam_product/templates/views/{administration → admin}/_get_products.html.erb +0 -0
- data/generators/opensteam_product/templates/views/{administration → admin}/_inventories.html.erb +2 -2
- data/generators/opensteam_product/templates/views/admin/edit.html.erb +13 -0
- data/generators/opensteam_product/templates/views/{administration → admin}/index.html.erb +5 -5
- data/generators/opensteam_product/templates/views/admin/new.html.erb +16 -0
- data/generators/opensteam_product/templates/views/{administration → admin}/show.html.erb +2 -2
- data/generators/opensteam_property/opensteam_property_generator.rb +8 -8
- data/generators/opensteam_property/templates/controllers/property_controller.rb +6 -4
- data/generators/opensteam_property/templates/migration.rb +2 -1
- data/generators/opensteam_property/templates/models/property.rb +1 -0
- data/generators/opensteam_property/templates/views/{administration → admin}/edit.html.erb +3 -3
- data/generators/opensteam_property/templates/views/admin/index.html.erb +24 -0
- data/generators/opensteam_property/templates/views/{administration → admin}/new.html.erb +2 -2
- data/generators/opensteam_property/templates/views/admin/show.html.erb +10 -0
- data/lib/opensteam/base.rb +16 -0
- data/lib/opensteam/cart_base.rb +227 -0
- data/lib/opensteam/checkout.rb +30 -3
- data/lib/opensteam/config.rb +37 -0
- data/lib/opensteam/extension_base.rb +76 -0
- data/lib/opensteam/finder.rb +36 -5
- data/lib/opensteam/helper/configurable_table.rb +228 -0
- data/lib/opensteam/history.rb +56 -0
- data/lib/opensteam/initializer.rb +127 -0
- data/lib/opensteam/inventory_base.rb +24 -1
- data/lib/opensteam/invoice_base.rb +61 -0
- data/lib/opensteam/order_base.rb +105 -14
- data/lib/opensteam/product_base.rb +31 -3
- data/lib/opensteam/property_base.rb +16 -0
- data/lib/opensteam/shipment_base.rb +60 -0
- data/lib/opensteam/shopping_cart.rb +32 -14
- data/lib/opensteam/state_logic.rb +218 -0
- data/lib/opensteam/state_machine.rb +216 -0
- data/lib/opensteam/user_base.rb +115 -131
- data/lib/opensteam/version.rb +17 -1
- data/lib/opensteam.rb +30 -35
- metadata +245 -146
- data/History.txt +0 -0
- data/License.txt +0 -4
- data/Manifest.txt +0 -131
- data/Manifest.txt.bak +0 -132
- data/generators/opensteam/templates/controllers/administration/customers_controller.rb +0 -23
- data/generators/opensteam/templates/controllers/administration/orders_controller.rb +0 -61
- data/generators/opensteam/templates/controllers/administration_controller.rb +0 -80
- data/generators/opensteam/templates/controllers/checkout_controller.rb +0 -142
- data/generators/opensteam/templates/helpers/webshop_helper.rb +0 -29
- data/generators/opensteam/templates/migrations/create_dummy_users.rb +0 -16
- data/generators/opensteam/templates/migrations/create_orders.rb +0 -18
- data/generators/opensteam/templates/migrations/create_users.rb +0 -19
- data/generators/opensteam/templates/models/administration_mailer.rb +0 -18
- data/generators/opensteam/templates/models/inventories_property.rb +0 -10
- data/generators/opensteam/templates/models/inventory.rb +0 -57
- data/generators/opensteam/templates/public/images/rails.png +0 -0
- data/generators/opensteam/templates/views/administration/_nav.html.erb +0 -11
- data/generators/opensteam/templates/views/administration/_update_tree.html.erb +0 -18
- data/generators/opensteam/templates/views/administration/admin_info.html.erb +0 -12
- data/generators/opensteam/templates/views/administration/customers/index.html.erb +0 -27
- data/generators/opensteam/templates/views/administration/customers/show.html.erb +0 -27
- data/generators/opensteam/templates/views/administration/customers.html.erb +0 -44
- data/generators/opensteam/templates/views/administration/index.html.erb +0 -9
- data/generators/opensteam/templates/views/administration/inventories/show.html.erb +0 -45
- data/generators/opensteam/templates/views/administration/login.html.erb +0 -16
- data/generators/opensteam/templates/views/administration/order.html.erb +0 -22
- data/generators/opensteam/templates/views/administration/orders/_order_item.html.erb +0 -22
- data/generators/opensteam/templates/views/administration/orders/index.html.erb +0 -32
- data/generators/opensteam/templates/views/administration/orders/show.html.erb +0 -25
- data/generators/opensteam/templates/views/administration/orders.html.erb +0 -32
- data/generators/opensteam/templates/views/administration/products.html.erb +0 -7
- data/generators/opensteam/templates/views/administration/properties.html.erb +0 -7
- data/generators/opensteam/templates/views/administration/show_order_item.html.erb +0 -5
- data/generators/opensteam/templates/views/administration/signup.html.erb +0 -65
- data/generators/opensteam/templates/views/administration/tree.html.erb +0 -15
- data/generators/opensteam/templates/views/administration/update_products.html.erb +0 -5
- data/generators/opensteam/templates/views/administration/update_properties.html.erb +0 -5
- data/generators/opensteam/templates/views/administration/update_tree.rjs +0 -3
- data/generators/opensteam/templates/views/checkout/intro.html.erb +0 -5
- data/generators/opensteam/templates/views/checkout/shipping.html.erb +0 -39
- data/generators/opensteam/templates/views/checkout/show_cart.html.erb +0 -13
- data/generators/opensteam/templates/views/common/_header.html.erb +0 -15
- data/generators/opensteam/templates/views/layouts/administration.html.erb +0 -29
- data/generators/opensteam/templates/views/layouts/webshop.html.erb +0 -36
- data/generators/opensteam/templates/views/webshop/_cart.html.erb +0 -11
- data/generators/opensteam/templates/views/webshop/_header.html.erb +0 -15
- data/generators/opensteam/templates/views/webshop/index.html.erb +0 -12
- data/generators/opensteam_product/templates/views/administration/edit.html.erb +0 -13
- data/generators/opensteam_product/templates/views/administration/new.html.erb +0 -16
- data/generators/opensteam_property/templates/views/administration/index.html.erb +0 -24
- data/generators/opensteam_property/templates/views/administration/show.html.erb +0 -10
@@ -0,0 +1,18 @@
|
|
1
|
+
<h1>welcome to checkout</h1>
|
2
|
+
|
3
|
+
<h3>Log In ...<h3>
|
4
|
+
|
5
|
+
<% form_tag user_session_path do -%>
|
6
|
+
<p><label for="login">Email</label><br/>
|
7
|
+
<%= text_field_tag 'email', @email %></p>
|
8
|
+
<p><label for="password">Password</label><br/>
|
9
|
+
<%= password_field_tag 'password', nil %></p>
|
10
|
+
<p><%= submit_tag 'Log in' %></p>
|
11
|
+
<% end -%>
|
12
|
+
|
13
|
+
|
14
|
+
<%= link_to "Continue without logging in..", :action => :show_cart %>
|
15
|
+
<br />
|
16
|
+
|
17
|
+
|
18
|
+
|
File without changes
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<h1>welcome to shipping</h1>
|
2
|
+
|
3
|
+
<%= error_messages_for :customer %>
|
4
|
+
<%= error_messages_for :shipping_address %>
|
5
|
+
<%= error_messages_for :payment_address %>
|
6
|
+
|
7
|
+
<% form_for :order, :url => { :action => :shipping } do |f| %>
|
8
|
+
<% f.fields_for :customer, @customer do |c| %>
|
9
|
+
|
10
|
+
<%= c.hidden_field :password, :value => "opensteam" %>
|
11
|
+
<%= c.hidden_field :password_confirmation, :value => "opensteam" %>
|
12
|
+
|
13
|
+
|
14
|
+
<table>
|
15
|
+
<tr><td><b>Email</b></td><td><%= c.text_field :email %></td></tr>
|
16
|
+
<tr><td><b>Firstname</b></td><td><%= c.text_field :firstname %></td></tr>
|
17
|
+
<tr><td><b>Lastname</b></td><td><%= c.text_field :lastname %></td></tr>
|
18
|
+
</table>
|
19
|
+
<br />
|
20
|
+
<div id="customer_address">
|
21
|
+
<u>Shipping Address</u><br /><br />
|
22
|
+
<% f.fields_for :shipping_address, @shipping_address do |a| %>
|
23
|
+
<table>
|
24
|
+
<tr><td><b>Street</b></td><td><%= a.text_field :street %></td></tr>
|
25
|
+
<tr><td><b>ZIP</b></td><td><%= a.text_field :postal %></td></tr>
|
26
|
+
<tr><td><b>City</b></td><td><%= a.text_field :city %></td></tr>
|
27
|
+
<tr><td><b>Country</b></td><td><%= a.text_field :land %></td></tr>
|
28
|
+
</table>
|
29
|
+
<% end %>
|
30
|
+
<br /><br />
|
31
|
+
<u>Payment Address</u><br /><br />
|
32
|
+
<% f.fields_for :payment_address, @payment_address do |a| %>
|
33
|
+
<table>
|
34
|
+
<tr><td><b>Street</b></td><td><%= a.text_field :street %></td></tr>
|
35
|
+
<tr><td><b>ZIP</b></td><td><%= a.text_field :postal %></td></tr>
|
36
|
+
<tr><td><b>City</b></td><td><%= a.text_field :city %></td></tr>
|
37
|
+
<tr><td><b>Country</b></td><td><%= a.text_field :land %></td></tr>
|
38
|
+
</table>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
<br /><br />
|
42
|
+
<%= link_to "prev", :action => :intro %> | <%= submit_tag "next" %>
|
43
|
+
<% end %>
|
44
|
+
|
45
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<b>Your Order</b>
|
2
|
+
<br />
|
3
|
+
<b><u>Order-Items</u></b><br /><br />
|
4
|
+
<div id="cart_content">
|
5
|
+
<%= render :partial => "common/cart_content" %>
|
6
|
+
</div>
|
7
|
+
<br />
|
8
|
+
<br />
|
9
|
+
<% form_tag :action => :place_order do %>
|
10
|
+
<%= link_to "prev", :action => :intro %> | <%= submit_tag "next" %>
|
11
|
+
<br />
|
12
|
+
<% end %>
|
13
|
+
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<b>shopping - cart </b>
|
1
|
+
<b>shopping - cart ... </b>
|
2
2
|
<br />
|
3
3
|
<br />
|
4
4
|
<div id="cart_content">
|
@@ -7,5 +7,5 @@
|
|
7
7
|
|
8
8
|
<% if ! @cart.items.empty? %>
|
9
9
|
<%= button_to "checkout" , { :action => :start_checkout }, :confirm => "checkout?" %>
|
10
|
-
<%= button_to "empty cart" , { :action => :empty_cart }, :confirm => "empty cart?" %>
|
10
|
+
<%= button_to "empty cart" , { :controller => 'cart', :action => :empty_cart }, :confirm => "empty cart?" %>
|
11
11
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% form_tag :action => :update_quantity do %>
|
2
2
|
<% @cart.items.each_with_index do |i,k| %>
|
3
3
|
<div class="cart_item" id="cart_item_<%=h k %>">
|
4
|
-
<%= i.product.class.to_s %> <%= link_to i.product.name,
|
4
|
+
<%= i.product.class.to_s %> <%= link_to i.product.name, show_cart_item_path(k) %> : <%=h i.quantity -%>
|
5
5
|
<%= text_field_tag "quantity[#{k}]", i.quantity.to_s, :id => "quantity", :size => 5 -%>
|
6
6
|
<%= link_to_remote image_tag( "/images/plus.png", :border => "0" ), :url => { :action => :incr_quantity, :id => k, :type => i.product.class.to_s } -%>
|
7
7
|
<%= link_to_remote image_tag( "/images/minus.png", :border => "0"), :url => { :action => :decr_quantity, :id => k, :type => i.product.class.to_s } -%>
|
@@ -0,0 +1 @@
|
|
1
|
+
openSteam v<%= Opensteam::VERSION::STRING %> | <a href="http://www.opensteam.net">www.opensteam.net</a> | <a href="#top">back to top ↩</a>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<p><label for="email">Email</label><br/>
|
2
|
+
<%= f.text_field :email %></p>
|
3
|
+
|
4
|
+
<p><label for="firstname">Firstname</label><br />
|
5
|
+
<%= f.text_field :firstname %></p>
|
6
|
+
|
7
|
+
<p><label for="lastname">Lastname</label><br />
|
8
|
+
<%= f.text_field :lastname %></p>
|
9
|
+
|
10
|
+
<p><label for="password">Password</label><br/>
|
11
|
+
<%= f.password_field :password %></p>
|
12
|
+
|
13
|
+
<p><label for="password_confirmation">Confirm Password</label><br/>
|
14
|
+
<%= f.password_field :password_confirmation %></p>
|
15
|
+
|
16
|
+
<p><%= submit_tag 'Sign up' %></p>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div id="top_links">
|
2
|
+
<%= render :partial => 'users/user_bar' -%> |
|
3
|
+
<%= link_to "index", opensteam_index_path %> | <%= link_to "search", new_search_path %>
|
4
|
+
</div>
|
5
|
+
<br />
|
6
|
+
<div id="flash_messages" style="background-color:#fff; padding:5px;">
|
7
|
+
<div style="color:red"><%=h flash[:error] %></div>
|
8
|
+
<div style="color:green"><%=h flash[:notice] %></div>
|
9
|
+
<div style="color:orange"><%=h flash[:warning] %></div>
|
10
|
+
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
+
<title><%= controller.controller_name.humanize %> - <%= controller.action_name.humanize %></title>
|
8
|
+
|
9
|
+
<%= javascript_include_tag :defaults %>
|
10
|
+
<%= javascript_include_tag "opensteam" %>
|
11
|
+
<%= stylesheet_link_tag 'opensteam_white' %>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div id="top"></div>
|
16
|
+
<div id="page">
|
17
|
+
|
18
|
+
<div id="header">
|
19
|
+
<%= render :partial => 'common/header', :locals => { :top_link => admin_path } %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div id="menu">
|
23
|
+
<%= render :partial => "common/header_flash" %>
|
24
|
+
<%= render :partial => 'admin/nav' %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div id="content_box">
|
28
|
+
|
29
|
+
<div id="sidebar">
|
30
|
+
<%= yield(:admin_sidebar) || "" %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="content">
|
34
|
+
<%= yield %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div id="footer">
|
39
|
+
<%= render :partial => 'common/footer' %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</body>
|
44
|
+
|
45
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
+
<title><%%= controller.controller_name.humanize %> - <%%= controller.action_name.humanize %></title>
|
8
|
+
|
9
|
+
<%%= javascript_include_tag :defaults %>
|
10
|
+
<%%= javascript_include_tag "opensteam" %>
|
11
|
+
<%%= stylesheet_link_tag 'opensteam_white' %>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div id="top"></div>
|
16
|
+
<div id="page">
|
17
|
+
|
18
|
+
<div id="header">
|
19
|
+
<%%= render :partial => 'common/header', :locals => { :top_link => shop_index_path } %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div id="menu">
|
23
|
+
<%%= render :partial => 'common/header_flash' %>
|
24
|
+
<%%= render :partial => '<%= file_name %>/nav' %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div id="content_box">
|
28
|
+
|
29
|
+
<div id="sidebar">
|
30
|
+
<%%= yield(:admin_sidebar) || "" %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="content">
|
34
|
+
<%%= yield %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div id="footer">
|
39
|
+
<%%= render :partial => 'common/footer' %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</body>
|
44
|
+
|
45
|
+
</html>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
+
<title><%%= controller.controller_name.humanize %> - <%%= controller.action_name.humanize %></title>
|
8
|
+
|
9
|
+
<%%= javascript_include_tag :defaults %>
|
10
|
+
<%%= stylesheet_link_tag 'opensteam_white' %>
|
11
|
+
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="top"></div>
|
15
|
+
<div id="page">
|
16
|
+
|
17
|
+
<div id="header">
|
18
|
+
<%%= render :partial => 'common/header', :locals => { :top_link => shop_index_path } %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div id="menu">
|
22
|
+
<%%= render :partial => "common/header_flash" %>
|
23
|
+
<%%= render :partial => '<%= file_name %>/nav' %>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="content_box">
|
27
|
+
|
28
|
+
<div id="sidebar">
|
29
|
+
<%%= yield(:store_sidebar) || "" %>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div id="content">
|
33
|
+
<%%= yield %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="cart" style="float:right;">
|
37
|
+
<%%= controller.controller_name.include?("<%= file_name %>") ? render( :partial => "common/cart" ) : "" %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div id="footer">
|
45
|
+
<%%= render :partial => 'common/footer' %>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
</body>
|
50
|
+
|
51
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<h4>General Information</h4>
|
2
|
+
<% admin_sidebar_links do %>
|
3
|
+
<%= admin_sidebar_link "Edit Customer Information", edit_profile_infos_path %>
|
4
|
+
<%= admin_sidebar_link "Change Password", :controller => 'infos', :action => 'edit_password' %>
|
5
|
+
<% end %>
|
6
|
+
<h4>Orders</h4>
|
7
|
+
<% admin_sidebar_links do %>
|
8
|
+
<%= admin_sidebar_link "Open Orders", profile_orders_state_path( [ :pending, :processing ] ) %>
|
9
|
+
<%= admin_sidebar_link "Open Orders XML", profile_orders_state_formatted_path( :xml, [ :pending, :processing ] ) %>
|
10
|
+
<%= admin_sidebar_link "Finished Orders", profile_orders_state_path( :finished ) %>
|
11
|
+
<%= admin_sidebar_link "Finished Orders XML", profile_orders_state_formatted_path( :xml, :finished ) %>
|
12
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% content_for :admin_sidebar do %>
|
2
|
+
<%= render :partial => 'profile/customer_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
|
6
|
+
<h3>Edit Customer Information</h3>
|
7
|
+
|
8
|
+
<%= error_messages_for :customer %>
|
9
|
+
|
10
|
+
<div id="edit_customer_information">
|
11
|
+
|
12
|
+
<% form_for :customer, @customer, :url => { :controller => 'profile/infos', :action => 'update' }, :html => { :method => :put } do |f| %>
|
13
|
+
<p>
|
14
|
+
<b>Email:</b> <%= f.text_field :email %>
|
15
|
+
</p>
|
16
|
+
<p>
|
17
|
+
<b>Firstname</b> <%= f.text_field :firstname %>
|
18
|
+
</p>
|
19
|
+
<p>
|
20
|
+
<b>Lastname</b> <%= f.text_field :lastname %>
|
21
|
+
</p>
|
22
|
+
<%= submit_tag "Update" %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% content_for :admin_sidebar do %>
|
2
|
+
<%= render :partial => 'profile/customer_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
|
6
|
+
<h3>Edit Customer Password</h3>
|
7
|
+
|
8
|
+
<%= error_messages_for :customer %>
|
9
|
+
|
10
|
+
<div id="edit_customer_password">
|
11
|
+
|
12
|
+
<% form_for :customer, @customer, :url => { :controller => 'profile/infos', :action => 'change_password' }, :html => { :method => :put } do |f| %>
|
13
|
+
|
14
|
+
<p>
|
15
|
+
<b>Old Password: </b> <%= f.password_field :old_password %> </p>
|
16
|
+
<p>
|
17
|
+
<b>New Password:</b> <%= f.password_field :password %>
|
18
|
+
</p>
|
19
|
+
<p>
|
20
|
+
<b>New Password Confirmation: </b> <%= f.password_field :password_confirmation %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<%= submit_tag "Update" %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<tr class="<%= cycle('odd','even') %>">
|
2
|
+
<td><%=h order.id %></td>
|
3
|
+
<td><%=h order.order_items.size %></td>
|
4
|
+
<td><%= order.customer.email %></td>
|
5
|
+
<td><%=h order.shipping_address.to_s %></td>
|
6
|
+
<td><%=h order.shipping_address.to_s %></td>
|
7
|
+
<td><%=h order.state %></td>
|
8
|
+
<td><%=h ordinalized_time( order.created_at ) %></td>
|
9
|
+
<td><%=h ordinalized_time( order.updated_at ) %></td>
|
10
|
+
<td><%= link_to "show", profile_order_path( order ) %></td>
|
11
|
+
</tr>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="order_item" style="padding-left:1em;border-bottom:1px dotted black;">
|
2
|
+
<b>Product:</b> <%=h order_item.inventory.product.name %> (<%=h order_item.inventory.product.class %>)<br />
|
3
|
+
<%- unless order_item.inventory.properties.empty? -%><b>Configuration:</b> <%=h order_item.inventory.properties.collect(&:name) * "," %><br /> <%- end -%>
|
4
|
+
<b>Quantity:</b> <%=h order_item.quantity %><br />
|
5
|
+
<b>Price:</b> <%=h order_item.quantity * order_item.inventory.price %><br />
|
6
|
+
</div>
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
<%= text_field_tag( :livesearch ) %>
|
3
|
+
<% render_configured_table :order do %>
|
4
|
+
<%= render_configured_table_header :order do |column|
|
5
|
+
url = { :controller =>"profile/orders", :action => 'sort', :sort => column.id, :model => 'Order' }
|
6
|
+
link_to_remote( column.name,
|
7
|
+
:url => url,
|
8
|
+
:update => id )
|
9
|
+
end %>
|
10
|
+
|
11
|
+
<%= render_configured_table_content( :partial => "profile/orders/order", :collection => orders, :id => id ) %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<%= observe_field :livesearch,
|
15
|
+
:url => { :action => :livesearch, :controller => 'profile/orders', :update_id => id },
|
16
|
+
:update => id,
|
17
|
+
:frequency => 2,
|
18
|
+
:with => :livesearch
|
19
|
+
%>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<% content_for :admin_sidebar do %>
|
2
|
+
<% admin_sidebar_links do %>
|
3
|
+
<%= admin_sidebar_link "Information", "#", :function => "toggle_admin_display('order_customer');" %>
|
4
|
+
<%= admin_sidebar_link "Shipments", "#", :function => "toggle_admin_display('order_shipments');" %>
|
5
|
+
<%= admin_sidebar_link "Invoices", "#", :function => "toggle_admin_display('order_invoices');" %>
|
6
|
+
<%= admin_sidebar_link "Order Items", "#", :function => "toggle_admin_display('order_order_items');" %>
|
7
|
+
<%= admin_sidebar_link "History", "#", :function => "toggle_admin_display('order_history');" %>
|
8
|
+
<% end%>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<h2>Order # <%= @order.id %></h2>
|
12
|
+
<h3>State: <%= @order.state %></h3>
|
13
|
+
|
14
|
+
<div id="order_customer" class="sub_content_box">
|
15
|
+
<h3>Customer</h3>
|
16
|
+
<%= render :partial => "profile/infos/customer", :object => @order.customer %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="order_shipments" class="sub_content_box" style="display:none;">
|
20
|
+
<h3>Shipments</h3>
|
21
|
+
<%= render :partial => "admin/shipments/shipments", :object => @order.shipments,
|
22
|
+
:locals => { :id => "order_shipments_table" } %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div id="order_invoices" class="sub_content_box" style="display:none;">
|
26
|
+
<h3>Invoices</h3>
|
27
|
+
<%= render :partial => "admin/invoices/invoices", :object => @order.invoices %>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div id="order_order_items" class="sub_content_box" style="display:none;">
|
31
|
+
<h3>Order Items</h3>
|
32
|
+
<b>Total Price</b>: <%=h @order.order_items.collect(&:inventory).collect(&:price).sum %>
|
33
|
+
<%= render :partial => "order_item", :collection => @order.order_items %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="order_history" class="sub_content_box" style="display:none;">
|
37
|
+
<h3>History</h3>
|
38
|
+
<ul>
|
39
|
+
<% for h in @order.history %>
|
40
|
+
<li><%=h h.message %> (<%=h ordinalized_time h.created_at %>)</li>
|
41
|
+
<% end %>
|
42
|
+
</ul>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<h3>Search for ..</h3>
|
2
|
+
|
3
|
+
<% form_for @search do |f| %>
|
4
|
+
<p>
|
5
|
+
<%= f.label :keywords %><br />
|
6
|
+
<%= f.text_field :keywords %>
|
7
|
+
</p>
|
8
|
+
<p>
|
9
|
+
Type<br />
|
10
|
+
<%= f.select :kind, Opensteam::Find.find_product_tables.collect(&:to_s).collect(&:classify), :include_blank => true %>
|
11
|
+
</p>
|
12
|
+
<p>
|
13
|
+
Price<br />
|
14
|
+
<%= f.text_field :minimum_price, :size => 8 %> - <%= f.text_field :maximum_price, :size => 8 %>
|
15
|
+
</p>
|
16
|
+
<p>
|
17
|
+
Storage<br />
|
18
|
+
<%= f.text_field :minimum_storage, :size => 8 %> - <%= f.text_field :maximum_storage, :size => 8 %>
|
19
|
+
</p>
|
20
|
+
<p><%= f.submit "Submit" %></p>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= debug @search.products %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<h1>Log In</h1>
|
2
|
+
|
3
|
+
<% form_tag user_session_path do -%>
|
4
|
+
<p><label for="login">Email</label><br/>
|
5
|
+
<%= text_field_tag 'email', @email %></p>
|
6
|
+
|
7
|
+
<p><label for="password">Password</label><br/>
|
8
|
+
<%= password_field_tag 'password', nil %></p>
|
9
|
+
|
10
|
+
<p><label for="remember_me">Remember me:</label>
|
11
|
+
<%= check_box_tag 'remember_me', '1', @remember_me %></p>
|
12
|
+
|
13
|
+
<p><%= submit_tag 'Log in' %></p>
|
14
|
+
<% end -%>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<% if logged_in? -%>
|
2
|
+
[logged in as <%= link_to_current_user :content_method => :email %> (<%= current_user.profile.name %>) | <%= link_to "logout", logout_path, { :title => "logout" } %>]
|
3
|
+
<%- else -%>
|
4
|
+
[<%= link_to "Log in", login_path, { :title => "Log in" } %> / <%= link_to "Sign up", signup_path, { :title => "Create an account" } %>]
|
5
|
+
<% end %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<h3>Users</h3>
|
2
|
+
<%- if params[:admin] -%>Admin<%- end -%>
|
3
|
+
<%- if params[:custoemr] -%>Customer<%- end -%>
|
4
|
+
<br />
|
5
|
+
<br />
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<th>Email</th>
|
9
|
+
<th>Firstname</th>
|
10
|
+
<th>Lastname</th>
|
11
|
+
<th>Created</th>
|
12
|
+
<th>Addresses</th>
|
13
|
+
<th>Orders</th>
|
14
|
+
<th />
|
15
|
+
</tr>
|
16
|
+
<% for user in @users %>
|
17
|
+
<tr>
|
18
|
+
<td><%=h user.email %></td>
|
19
|
+
<td><%=h user.firstname %></td>
|
20
|
+
<td><%=h user.lastname %></td>
|
21
|
+
<td><%=h user.created_at %></td>
|
22
|
+
<%- if params[:customer] -%>
|
23
|
+
<td><%=h user.addresses.size %></td>
|
24
|
+
<%- end -%>
|
25
|
+
</tr>
|
26
|
+
<% end %>
|
27
|
+
</table>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<h1>Sign up as a new <%=h @user.class.to_s %> </h1>
|
2
|
+
<% @user.password = @user.password_confirmation = nil %>
|
3
|
+
|
4
|
+
<%= error_messages_for :user %>
|
5
|
+
<% form_for :user, :url => users_path do |f| -%>
|
6
|
+
<%= render :partial => 'common/signup_fields', :locals=> { :f => f } %>
|
7
|
+
<% end -%>
|
File without changes
|
File without changes
|
data/generators/opensteam/templates/{views → app/views}/webshop/add_to_cart_with_parameters.rjs
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div id="index" style="padding:2px;">
|
2
|
+
<b>Product - List</b><br /><br />
|
3
|
+
<%% for product in @products %>
|
4
|
+
<div id="<%%= cycle('odd','even') %>" style="padding:2px;">
|
5
|
+
<b><%%=h product.class %></b> <%%=h product.name %> --
|
6
|
+
<%%= link_to 'details', :controller => "<%= file_name %>", :action => :show, :type => product.class.to_s.demodulize, :id => product.id %>
|
7
|
+
</div>
|
8
|
+
<%% end %> <br />
|
9
|
+
<br />
|
10
|
+
<br /><br />
|
11
|
+
</div>
|
File without changes
|