Relaxed the need for Types that represent database boundaries to extend from ActiveRe...
[castle.git] / Samples / Castle / PetStore.Web / views / Product / Details.vm
blobb95b4cfe8323eb8f177739b6372337e57bbcf9f7
1 <h3>$product.Name</h3>\r
2 \r
3 <div class="item" id="product${product.id}">\r
4         <div class="itemImg"> \r
5         #component(ImageLocationComponent with "image=${product.PictureFile}" "border=1" "width=140" "height=110")\r
6         </div>\r
7         <div class="title">$product.name</div>\r
8         <br/>\r
9         <div class="price">\r
10         Price: <span>$product.Price.ToString("C")</span>\r
11         </div>\r
12         \r
13         $AjaxHelper.BuildFormRemoteTag( $DictHelper.CreateDict("url=${siteRoot}/Cart/AddToCart.rails", "Onsuccess=productAdded", "Onfailure=productNotAdded") )\r
14         <input type="text" name="quantity" id="quantity" value="1" size="1" maxlength="1" />\r
15         <input type="submit" value="Add to cart"  />\r
16         </form>\r
18         <div class="description">$product.Description</div>\r
19 </div>