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