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
@@ -1,27 +0,0 @@
|
|
1
|
-
<h3>Customers</h3>
|
2
|
-
<br />
|
3
|
-
<br />
|
4
|
-
<table>
|
5
|
-
<tr>
|
6
|
-
<th>IP</th>
|
7
|
-
<th>Email</th>
|
8
|
-
<th>Firstname</th>
|
9
|
-
<th>Lastname</th>
|
10
|
-
<th>Created</th>
|
11
|
-
<th>Addresses</th>
|
12
|
-
<th>Orders</th>
|
13
|
-
<th />
|
14
|
-
</tr>
|
15
|
-
<% for customer in @customers %>
|
16
|
-
<tr>
|
17
|
-
<td><%=h customer.ip %></td>
|
18
|
-
<td><%=h customer.email %></td>
|
19
|
-
<td><%=h customer.firstname %></td>
|
20
|
-
<td><%=h customer.lastname %></td>
|
21
|
-
<td><%=h customer.created_at %></td>
|
22
|
-
<td><%=h customer.addresses.size %></td>
|
23
|
-
<td><%=h customer.orders.size %> <%= link_to "show orders", :controller => :orders, :action => :index, :customer_id => customer.id %> </td>
|
24
|
-
<td><%= link_to "show", administration_customer_path( customer ) %></td>
|
25
|
-
</tr>
|
26
|
-
<% end %>
|
27
|
-
</table>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<h3>Customer Info</h3>
|
2
|
-
<br />
|
3
|
-
<b>Email:</b> <%= @customer.email %><br /><br />
|
4
|
-
<b>Firstname:</b> <%=h @customer.firstname %><br />
|
5
|
-
<b>Lastname:</b> <%=h @customer.lastname %><br />
|
6
|
-
<br />
|
7
|
-
<b>Orders: </b> <%=h @customer.orders.size %> <%= link_to "show orders", :controller => :orders, :action => :index, :customer_id => @customer.id %><br />
|
8
|
-
<br />
|
9
|
-
<b>Addresses</b>
|
10
|
-
<table>
|
11
|
-
<tr>
|
12
|
-
<th>#</th>
|
13
|
-
<th>ZIP</th>
|
14
|
-
<th>Street</th>
|
15
|
-
<th>City</th>
|
16
|
-
<th>Land</th>
|
17
|
-
</tr>
|
18
|
-
<% for address in @customer.addresses %>
|
19
|
-
<tr>
|
20
|
-
<td><%= address.id %></td>
|
21
|
-
<td><%= address.postal %></td>
|
22
|
-
<td><%= address.street%></td>
|
23
|
-
<td><%= address.city %></td>
|
24
|
-
<td><%= address.land %></td>
|
25
|
-
</tr>
|
26
|
-
<% end %>
|
27
|
-
</table>
|
@@ -1,44 +0,0 @@
|
|
1
|
-
<b>Show Customers</b>
|
2
|
-
<% for u in @users %>
|
3
|
-
<div id="<%= cycle('odd','even') %>" >
|
4
|
-
<table>
|
5
|
-
<tr style="text-decoration:underline;">
|
6
|
-
<td>IP</td><td>Email</td><td>Firstname</td><td>Lastname</td><td>Created</td><td>Addresses</td><td>Orders</td>
|
7
|
-
</tr>
|
8
|
-
<tr>
|
9
|
-
<tr>
|
10
|
-
<td><%=h u.ip %></td>
|
11
|
-
<td><%=h u.email %></td>
|
12
|
-
<td><%=h u.firstname %></td>
|
13
|
-
<td><%=h u.lastname %></td>
|
14
|
-
<td><%=h u.created_at %></td>
|
15
|
-
<td><%=h u.orders.size %></td>
|
16
|
-
<td><%=h u.addresses.size %></td>
|
17
|
-
</tr>
|
18
|
-
</tr>
|
19
|
-
</table>
|
20
|
-
<br /><br />
|
21
|
-
<b>Orders</b>
|
22
|
-
<br />
|
23
|
-
<div id="orders">
|
24
|
-
<% for o in u.orders %>
|
25
|
-
Created at <%= o.created_at %><br />
|
26
|
-
<ul>
|
27
|
-
<% for oi in o.order_items %>
|
28
|
-
<li><%= oi.itemid %> | Quantity: <%= oi.quantity %></li>
|
29
|
-
<% end %>
|
30
|
-
</ul>
|
31
|
-
<% end %>
|
32
|
-
</div >
|
33
|
-
<br /><br />
|
34
|
-
<b>Addresses</b>
|
35
|
-
<br />
|
36
|
-
<div id="addresses">
|
37
|
-
<% for o in u.addresses %>
|
38
|
-
<u>street</u>: <%=h o.street %> | <u>zip</u>: <%=h o.postal %> | <u>country</u>: <%=h o.land %> | <u>city</u>: <%=h o.city %>
|
39
|
-
<br />
|
40
|
-
<% end %>
|
41
|
-
</div >
|
42
|
-
</div>
|
43
|
-
<br /><br /><br />
|
44
|
-
<% end %>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<b>Administration - Section</b><br />
|
2
|
-
<br />
|
3
|
-
<ul>
|
4
|
-
<li><%= link_to "Products", :action => :products %></li>
|
5
|
-
<li><%= link_to "Properties", :action => :properties %></li>
|
6
|
-
<li><%= link_to "Orders", :action => :orders %></li>
|
7
|
-
<li><%= link_to "Users", :action => :users %></li>
|
8
|
-
</ul>
|
9
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
|
2
|
-
<% content_for :sub_nav do %>
|
3
|
-
<%= link_to "#{@inventory.product.class.to_s.pluralize} Index", :controller => @inventory.product.class.to_s.tableize, :action => :index %> ||
|
4
|
-
<%= link_to "Show Product", [:administration, @inventory.product ] %> |
|
5
|
-
<%= link_to "Edit Product", [:edit, :administration, @inventory.product ] %> |
|
6
|
-
<%= link_to "Edit Inventory", edit_administration_inventory_path( @inventory ) %>
|
7
|
-
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<h3>Showing Inventory for <%=h @inventory.product.class %> '<%=h @inventory.product.name %>'</h3>
|
13
|
-
<h4>Configuration: <%=h @inventory.properties.collect(&:name) * "," %></h4>
|
14
|
-
|
15
|
-
<p>
|
16
|
-
<b>Price:</b>
|
17
|
-
<%=h @inventory.price %>
|
18
|
-
</p>
|
19
|
-
|
20
|
-
<p>
|
21
|
-
<b>Storage:</b>
|
22
|
-
<%=h @inventory.storage %>
|
23
|
-
</p>
|
24
|
-
|
25
|
-
<p>
|
26
|
-
<b>Active:</b>
|
27
|
-
<%=h @inventory.active == 1 ? "true" : "false"%>
|
28
|
-
</p>
|
29
|
-
|
30
|
-
<p>
|
31
|
-
<b>Back ordered:</b>
|
32
|
-
<%=h @inventory.back_ordered == 1 ? "true" : "false" %>
|
33
|
-
</p>
|
34
|
-
|
35
|
-
<p>
|
36
|
-
<b>Description:</b>
|
37
|
-
<%=h @inventory.description %>
|
38
|
-
</p>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<%= link_to 'Edit', edit_administration_inventory_path(@inventory) %> |
|
44
|
-
<%= link_to 'Back', [:administration, @inventory.product ] %> |
|
45
|
-
<%= link_to 'Inventory Index', administration_inventories_path %>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<div style="width:100%;height:100%;text-align:center;">
|
2
|
-
|
3
|
-
<% form_tag :action=> "login" do %>
|
4
|
-
|
5
|
-
<h3>Login</h3>
|
6
|
-
<label for="user_login">Login:</label><br/>
|
7
|
-
<%= text_field "user", "login", :size => 20 %><br/>
|
8
|
-
<br />
|
9
|
-
<label for="user_password">Password:</label><br/>
|
10
|
-
<%= password_field "user", "password", :size => 20 %><br/>
|
11
|
-
<br />
|
12
|
-
<%= submit_tag "log in" %>
|
13
|
-
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
</div>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<h2>Order No. <%= @order.id %></h2>
|
2
|
-
|
3
|
-
<h3>Customer Info</h3>
|
4
|
-
<br />
|
5
|
-
<b>Email:</b> <%=h @order.customer.email %><br />
|
6
|
-
<b>Firstname:</b> <%=h @order.customer.firstname %><br />
|
7
|
-
<b>Lastname:</b> <%=h @order.customer.lastname %><br />
|
8
|
-
<br />
|
9
|
-
<table>
|
10
|
-
<tr><td><b>Shipping Address</b></td><td style="border-left:1px dotted black;padding-left:1em;"><b>Payment Address</b></td></tr>
|
11
|
-
<tr>
|
12
|
-
<td><%= render :partial => "address", :object => @order.shipping_address %></td>
|
13
|
-
<td style="border-left:1px dotted black;padding-left:1em;"><%= render :partial => "address", :object => @order.payment_address %></td>
|
14
|
-
</tr>
|
15
|
-
</table>
|
16
|
-
<br /><br />
|
17
|
-
<h3>Order Items</h3>
|
18
|
-
<b>Total Price</b>: <%=h @order.order_items.collect(&:inventory).collect(&:price).sum %>
|
19
|
-
<br /><br />
|
20
|
-
<%= render :partial => "order_item", :collection => @order.order_items %>
|
21
|
-
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<div class="order_item" style="border-bottom:1px dotted black;">
|
2
|
-
<b>Raw Item Data</b> <%= link_to_remote "show",
|
3
|
-
:url => { :action => :show_order_item, :order_id => @order.id, :order_item_id => order_item.id },
|
4
|
-
:update => :page2,
|
5
|
-
:loading => 'Element.show("indicator");',
|
6
|
-
:complete => 'Element.hide("indicator");' %> <span id="indicator" style="margin-top:0px; display:none"><%= image_tag "indicator.gif" %>loading...</span>
|
7
|
-
|
8
|
-
<br />
|
9
|
-
<%= debug Inventory.find( order_item.itemid ) %><br />
|
10
|
-
<%= debug Inventory.find( order_item.itemid ).product %><br />
|
11
|
-
<%= debug Inventory.find( order_item.itemid ).properties %><br />
|
12
|
-
|
13
|
-
|
14
|
-
<b>Quantity:</b> <%=h order_item.quantity %>
|
15
|
-
<b>Price:</b> <%=h order_item.quantity * order_item.inventory.price %>
|
16
|
-
<br /><br />
|
17
|
-
|
18
|
-
</div>
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<h2> Orders </h2>
|
2
|
-
<br />
|
3
|
-
<%= link_to "show all", administration_orders_path %> |
|
4
|
-
<%= link_to "show not-paid", :action => "index", :filter => :unpaid %>
|
5
|
-
<%= link_to "show not-shipped", :action => "index", :filter => :unshipped %>
|
6
|
-
<br />
|
7
|
-
<br />
|
8
|
-
<table>
|
9
|
-
<tr>
|
10
|
-
<th>Order Id</th>
|
11
|
-
<th>Order Items</th>
|
12
|
-
<th>Submitted by</th>
|
13
|
-
<th>Submitted at</th>
|
14
|
-
<th>Shipped</th>
|
15
|
-
<th>Paid</th>
|
16
|
-
<td />
|
17
|
-
</tr>
|
18
|
-
<% for order in @orders %>
|
19
|
-
<tr>
|
20
|
-
<td><%=h order.id %></td>
|
21
|
-
<td><%=h order.order_items.size %></td>
|
22
|
-
<td><%= link_to order.customer.email, administration_customer_path( order.customer ) %></td>
|
23
|
-
<td><%=h order.created_at %></td>
|
24
|
-
<td><%=h order.shipped == 1 ? "yes" : "no" %></td>
|
25
|
-
<td><%=h order.paid == 1 ? "yes" : "no" %></td>
|
26
|
-
<td><%= link_to "show", administration_order_path( order ) %></td>
|
27
|
-
</tr>
|
28
|
-
<% end %>
|
29
|
-
</table>
|
30
|
-
|
31
|
-
|
32
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<h2>Order No. <%= @order.id %></h2>
|
2
|
-
|
3
|
-
<h3>Customer Info</h3>
|
4
|
-
<br />
|
5
|
-
<b>Email:</b> <%=h @order.customer.email %><br />
|
6
|
-
<b>Firstname:</b> <%=h @order.customer.firstname %><br />
|
7
|
-
<b>Lastname:</b> <%=h @order.customer.lastname %><br />
|
8
|
-
<br />
|
9
|
-
<b>Paid</b> <%=h @order.paid == 1 ? "true" : "false" %> <%= link_to "toggle", :action => :toggle, :id => @order.id, :toggle => "paid" %> <br />
|
10
|
-
<b>Shipped</b> <%=h @order.shipped == 1 ? "true" : "false" %> <%= link_to "toggle", :action => :toggle, :id => @order.id, :toggle => "shipped" %> <br />
|
11
|
-
<br />
|
12
|
-
<table>
|
13
|
-
<tr><td><b>Shipping Address</b></td><td style="border-left:1px dotted black;padding-left:1em;"><b>Payment Address</b></td></tr>
|
14
|
-
<tr>
|
15
|
-
<td><%= render :partial => "administration/address", :object => @order.shipping_address %></td>
|
16
|
-
<td style="border-left:1px dotted black;padding-left:1em;"><%= render :partial => "administration/address", :object => @order.payment_address %></td>
|
17
|
-
</tr>
|
18
|
-
</table>
|
19
|
-
<br /><br />
|
20
|
-
<h3>Order Items</h3>
|
21
|
-
<b>Total Price</b>: <%=h @order.order_items.collect(&:inventory).collect(&:price).sum %>
|
22
|
-
<br /><br />
|
23
|
-
<%= render :partial => "order_item", :collection => @order.order_items %>
|
24
|
-
|
25
|
-
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<h2> Orders </h2>
|
2
|
-
<br />
|
3
|
-
<br />
|
4
|
-
<table>
|
5
|
-
<tr>
|
6
|
-
<td>Order Id</td>
|
7
|
-
<td>Order Items</td>
|
8
|
-
<td>Submitted by</td>
|
9
|
-
<td>Submitted at</td>
|
10
|
-
<td>Shipped</td>
|
11
|
-
<td>Paid</td>
|
12
|
-
<td />
|
13
|
-
<td />
|
14
|
-
<td />
|
15
|
-
</tr>
|
16
|
-
<% for order in @orders %>
|
17
|
-
<tr>
|
18
|
-
<td><%=h order.id %></td>
|
19
|
-
<td><%=h order.order_items.size %></td>
|
20
|
-
<td><%=h order.customer.email %></td>
|
21
|
-
<td><%=h order.created_at %></td>
|
22
|
-
<td><%=h order.shipped == 1 ? "yes" : "no" %></td>
|
23
|
-
<td><%=h order.paid == 1 ? "yes" : "no" %></td>
|
24
|
-
<td><%= link_to "toggle shipped", { :action => :toggle_shipped, :id => order.id } %></td>
|
25
|
-
<td><%= link_to "toggle paid", { :action => :toggle_paid, :id => order.id } %></td>
|
26
|
-
<td><%= link_to "show details", { :action => :order, :id => order.id } %></td>
|
27
|
-
</tr>
|
28
|
-
<% end %>
|
29
|
-
</table>
|
30
|
-
|
31
|
-
|
32
|
-
|
@@ -1,65 +0,0 @@
|
|
1
|
-
<b>Signup</b>
|
2
|
-
<br />
|
3
|
-
<%= error_messages_for :user %>
|
4
|
-
|
5
|
-
<% form_for @user, :url => { :action => "signup" } do |f| %>
|
6
|
-
<p>
|
7
|
-
<b>login</b><br />
|
8
|
-
<%= f.text_field :login %>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<b>firstname<br />
|
13
|
-
<%= f.text_field :firstname %>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<b>lastname</b><br />
|
18
|
-
<%= f.text_field :lastname %>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<p>
|
22
|
-
<b>email</b><br />
|
23
|
-
<%= f.text_field :email %>
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<p>
|
27
|
-
<b>password</b><br />
|
28
|
-
<%= f.password_field :password %>
|
29
|
-
</p>
|
30
|
-
|
31
|
-
<p>
|
32
|
-
<b>password confirmation<br />
|
33
|
-
<%= f.password_field :password_confirmation %>
|
34
|
-
</p>
|
35
|
-
|
36
|
-
|
37
|
-
<br /><br />
|
38
|
-
<p><b><u>Address</u></b><br />
|
39
|
-
<% for address in @user.addresses %>
|
40
|
-
|
41
|
-
<% fields_for "customer[address_attributes][]", address do |a| %>
|
42
|
-
<p>
|
43
|
-
<b>street</b><br />
|
44
|
-
<%= a.text_field :street %><br />
|
45
|
-
</p>
|
46
|
-
<p>
|
47
|
-
<b>zip</b><br />
|
48
|
-
<%= a.text_field :postal %><br />
|
49
|
-
</p>
|
50
|
-
<p>
|
51
|
-
<b>city</b><br />
|
52
|
-
<%= a.text_field :city %><br />
|
53
|
-
</p>
|
54
|
-
<p>
|
55
|
-
<b>land</b><br />
|
56
|
-
<%= a.text_field :land %><br />
|
57
|
-
</p>
|
58
|
-
<% end %>
|
59
|
-
<% end %>
|
60
|
-
</p>
|
61
|
-
|
62
|
-
<p>
|
63
|
-
<%= f.submit "signup" %>
|
64
|
-
</p>
|
65
|
-
<% end %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<div id="product_tree">
|
2
|
-
<% for c in @productclasses %>
|
3
|
-
<div sid="<%= c %>">
|
4
|
-
<%= link_to_remote (image_tag "/images/plus.png", :id => "tree_image_#{c}", :align => "top", :border => "0"),
|
5
|
-
:url => { :action => "update_tree", :class => c }
|
6
|
-
%>
|
7
|
-
<%= c %>
|
8
|
-
<div style="padding-left:21px;" id="product<%= c %>">
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
<br />
|
12
|
-
<% end %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
<h1>welcome to shipping</h1>
|
2
|
-
-> session : <%=h session[:active_order] %><br />
|
3
|
-
|
4
|
-
<%= error_messages_for :customer %>
|
5
|
-
<%= error_messages_for :shipping_address %>
|
6
|
-
<%= error_messages_for :payment_address %>
|
7
|
-
|
8
|
-
|
9
|
-
<% form_for :customer, :url => { :action => :shipping } do |f| %>
|
10
|
-
<table>
|
11
|
-
<tr><td><b>Email</b></td><td><%= f.text_field :email %></td></tr>
|
12
|
-
<tr><td><b>Firstname</b></td><td><%= f.text_field :firstname %></td></tr>
|
13
|
-
<tr><td><b>Lastname</b></td><td><%= f.text_field :lastname %></td></tr>
|
14
|
-
</table>
|
15
|
-
<br />
|
16
|
-
<div id="customer_address">
|
17
|
-
<u>Shipping Address</u><br /><br />
|
18
|
-
<% fields_for :shipping_address, @shipping_address do |a| %>
|
19
|
-
<table>
|
20
|
-
<tr><td><b>Street</b></td><td><%= a.text_field :street %></td></tr>
|
21
|
-
<tr><td><b>ZIP</b></td><td><%= a.text_field :postal %></td></tr>
|
22
|
-
<tr><td><b>City</b></td><td><%= a.text_field :city %></td></tr>
|
23
|
-
<tr><td><b>Country</b></td><td><%= a.text_field :land %></td></tr>
|
24
|
-
</table>
|
25
|
-
<% end %>
|
26
|
-
<br /><br />
|
27
|
-
<u>Payment Address</u><br /><br />
|
28
|
-
<% fields_for :payment_address, @payment_address do |a| %>
|
29
|
-
<table>
|
30
|
-
<tr><td><b>Street</b></td><td><%= a.text_field :street %></td></tr>
|
31
|
-
<tr><td><b>ZIP</b></td><td><%= a.text_field :postal %></td></tr>
|
32
|
-
<tr><td><b>City</b></td><td><%= a.text_field :city %></td></tr>
|
33
|
-
<tr><td><b>Country</b></td><td><%= a.text_field :land %></td></tr>
|
34
|
-
</table>
|
35
|
-
<% end %>
|
36
|
-
</div>
|
37
|
-
<br /><br />
|
38
|
-
<%= link_to "prev", :action => :intro %> | <%= submit_tag "next" %>
|
39
|
-
<% end %>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<b>Your Order</b>
|
2
|
-
-> session : <%%=h session[:active_order] %><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
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= link_to (image_tag "opensteam_logo_web.jpg", :border => "0", :align => "top"), shop_index_path %>
|
2
|
-
<% if session[:user_login] %>
|
3
|
-
logged in as <b><%=h session[:user_login] %></b>
|
4
|
-
(<%= Opensteam::UserBase::User.find(:first, :conditions => ["login = ?", session[:user_login] ]).class.to_s.demodulize %>)
|
5
|
-
| <%= link_to "logout", logout_path %>
|
6
|
-
<% if Opensteam::UserBase::User.find(:first, :conditions => ["login = ?", session[:user_login] ]).is_admin? %>
|
7
|
-
| <%= link_to "administration", administration_path %>
|
8
|
-
||
|
9
|
-
<% end %>
|
10
|
-
<% else %>
|
11
|
-
<%= link_to "login", login_path %>
|
12
|
-
<% end %>
|
13
|
-
<span style="color:red;"><%=h flash[:error] %></span>
|
14
|
-
<span style="color:green;"><%=h flash[:notice] %></span>
|
15
|
-
<span style="color:orange;"><%=h flash[:warning] %></span>
|
@@ -1,29 +0,0 @@
|
|
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>Products: <%%= controller.action_name %></title>
|
8
|
-
<%%= javascript_include_tag :defaults %>
|
9
|
-
<%%= stylesheet_link_tag '<%= file_name %>' %>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<div id="indicator_center" style="display:none;"><%%= image_tag("indicator_big.gif") %></div>
|
13
|
-
<div id="header">
|
14
|
-
<%%= render :partial => "common/header" %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div id="catalog_content" style="width:80%;">
|
18
|
-
<div style="float:left;margin-left:20px;width:100%;">
|
19
|
-
<div class="sub_box" id="product_actions">
|
20
|
-
<%%= render :partial => "administration/nav" %>
|
21
|
-
</div>
|
22
|
-
<div class="sub_box" id="content">
|
23
|
-
<%%= yield %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
</body>
|
29
|
-
</html>
|
@@ -1,36 +0,0 @@
|
|
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>Products: <%%= controller.action_name %></title>
|
8
|
-
<%%= javascript_include_tag :defaults %>
|
9
|
-
<%%= stylesheet_link_tag '<%= file_name %>' %>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
|
13
|
-
<div id="header">
|
14
|
-
<%%= render :partial => "common/header" %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<br />
|
18
|
-
|
19
|
-
<div id="page">
|
20
|
-
|
21
|
-
<div id="content">
|
22
|
-
|
23
|
-
<%% if controller.controller_name == '<%= file_name %>' %>
|
24
|
-
<div id="cart">
|
25
|
-
<%%= render :partial => "common/cart", :object => @cart %>
|
26
|
-
</div>
|
27
|
-
<%% end %>
|
28
|
-
|
29
|
-
<%%= yield %>
|
30
|
-
|
31
|
-
|
32
|
-
</div>
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</body>
|
36
|
-
</html>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<b>shopping - cart </b>
|
2
|
-
<br />
|
3
|
-
<br />
|
4
|
-
<div id="cart_content">
|
5
|
-
<%= render :partial => "cart_content" %>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<% if ! @cart.items.empty? %>
|
9
|
-
<%= button_to "checkout" , { :action => :start_checkout }, :confirm => "checkout?" %>
|
10
|
-
<%= button_to "empty cart" , { :action => :empty_cart }, :confirm => "empty cart?" %>
|
11
|
-
<% end %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= link_to (image_tag "opensteam_logo_web.jpg", :border => "0", :align => "top"), shop_index_path %>
|
2
|
-
<% if session[:user_login] %>
|
3
|
-
logged in as <b><%=h session[:user_login] %></b>
|
4
|
-
(<%= Opensteam::UserBase::User.find(:first, :conditions => ["login = ?", session[:user_login] ]).class.to_s.demodulize %>)
|
5
|
-
| <%= link_to "logout", logout_path %>
|
6
|
-
<% if Opensteam::UserBase::User.find(:first, :conditions => ["login = ?", session[:user_login] ]).is_admin? %>
|
7
|
-
| <%= link_to "administration", administration_path %>
|
8
|
-
||
|
9
|
-
<% end %>
|
10
|
-
<% else %>
|
11
|
-
<%= link_to "login", login_path %>
|
12
|
-
<% end %>
|
13
|
-
<span style="color:red;"><%=h flash[:error] %></span>
|
14
|
-
<span style="color:green;"><%=h flash[:notice] %></span>
|
15
|
-
<span style="color:orange;"><%=h flash[:warning] %></span>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<div id="index">
|
2
|
-
<b>Product - List</b><br /><br />
|
3
|
-
<%% for product in @products %>
|
4
|
-
<div id="<%%= cycle('odd','even') %>">
|
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>
|
12
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<%% content_for :sub_nav do %>
|
2
|
-
<%%= link_to "<%= class_name %> Index", administration_<%= table_name %>_path %> ||
|
3
|
-
<%%= link_to "Show Current", [:administration, @<%= file_name %>] %>
|
4
|
-
<%% end %>
|
5
|
-
|
6
|
-
<h1>Editing <%= class_name %></h1>
|
7
|
-
|
8
|
-
<%%= error_messages_for :<%= file_name %> %>
|
9
|
-
|
10
|
-
<%% form_for :<%= file_name %>, @<%= file_name %>, :url => { :action => :update }, :html => { :method => "put" } do |f| %>
|
11
|
-
<%%= render :partial => "administration/<%= table_name %>/attributes", :locals => { :button_name => "Update", :f => f }%>
|
12
|
-
<%% end %>
|
13
|
-
|