sbdevcart 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,5 @@
1
1
  .product {
2
- border: 2px solid black;
3
- @include box-shadow($shadow-radius);
4
- @include corners-all($corner-radius);
5
- padding: 0 10px;
6
-
2
+ border-top: 2px dotted black;
7
3
  .button {
8
4
  font-size: 1em;
9
5
  }
@@ -1,12 +1,16 @@
1
1
  <div class='product' id='<%= product.id %>'>
2
- <h3><%= product.name.titleize %> - <%= number_to_currency product.price.to_i %></h3>
3
- <%= form_for OrderItem.new(:quantity => 1) do |f| %>
4
- <%= f.label :quantity %>
5
- <%= f.text_field :quantity, :size => 5 %>
6
- <%= f.hidden_field :product_id, :value => product.id %>
7
- <%= f.hidden_field :order_id, :value => @order.id %>
8
- <%= f.submit "Add To Cart", :class => 'button' %>
9
- <% end %>
2
+ <div class='clearfix'>
3
+ <div class='right'>
4
+ <%= form_for OrderItem.new(:quantity => 1) do |f| %>
5
+ <%= f.label :quantity %>
6
+ <%= f.text_field :quantity, :size => 5 %>
7
+ <%= f.hidden_field :product_id, :value => product.id %>
8
+ <%= f.hidden_field :order_id, :value => @order.id %>
9
+ <%= f.submit "Add To Cart", :class => 'button' %>
10
+ <% end %>
11
+ </div>
12
+ <h3><%= product.name.titleize %> - <%= number_to_currency product.price.to_i %></h3>
13
+ </div>
10
14
  <div class='clearfix'><%= render :partial => 'indices/show', :object => product.index, :as => :index %></div>
11
15
  <% if admin_signed_in? %>
12
16
  <p class='asset-admin'>
@@ -1,3 +1,3 @@
1
1
  module Sbdevcart
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevcart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sbdevcore
16
- requirement: &2156269220 !ruby/object:Gem::Requirement
16
+ requirement: &2153589900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156269220
24
+ version_requirements: *2153589900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: aasm
27
- requirement: &2156268640 !ruby/object:Gem::Requirement
27
+ requirement: &2153589400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2156268640
35
+ version_requirements: *2153589400
36
36
  description: Sbdev Shopping Cart
37
37
  email:
38
38
  - aosalias@gmail.com