Merge pull request #229 from Skud/recommended-price

display recommended price on product admin pages
This commit is contained in:
Skud
2013-06-06 18:37:29 -07:00
3 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
%th Name
%th Description
%th Min price
%th Recommended price
%th Account type
%th Paid months
%th
@@ -16,6 +17,7 @@
%td= product.name
%td= product.description
%td= product.min_price
%td= product.recommended_price
%td= product.account_type ? product.account_type.name : ""
%td= product.paid_months
%td= link_to 'Show', product

View File

@@ -5,10 +5,14 @@
= @product.name
%p
%b Description:
= @product.description
:markdown
#{@product.description}
%p
%b Min price:
= @product.min_price
%p
%b Recommended price:
= @product.recommended_price
%p
%b Account type:
= @product.account_type.name

View File

@@ -9,7 +9,7 @@ describe "products/show" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should contain @product.name
rendered.should contain @product.description
rendered.should contain @product.min_price.to_s
rendered.should contain @product.recommended_price.to_s
end
end