mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-30 12:45:48 -04:00
Merge pull request #229 from Skud/recommended-price
display recommended price on product admin pages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user