forked from Adolfi/UmbracoNineDemoSite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ProductPage.cshtml
32 lines (31 loc) · 1.15 KB
/
ProductPage.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@inject UmbracoNineDemoSite.Core.Features.Shared.Variables.ISiteVariable SiteVariable
@model UmbracoNineDemoSite.Core.Features.Products.ProductPageViewModel
@{
Layout = "Master.cshtml";
}
@if (Model != null)
{
@(await Html.PartialAsync("_SectionHeader"))
<section class="section">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="product-image-container">
<img class="product-image" src="@Model.ImageUrl" />
</div>
</div>
<div class="col-md-6">
<h1>@Model.Name</h1>
<div class="product-price">€@Model.Price.ToString("F")</div>
<div class="product-teaser">@Model.Description</div>
@if (SiteVariable.Get<bool>("enableCommerce", false))
{
<div class="product-button">
<button class="button button--border--solid">Buy</button>
</div>
}
</div>
</div>
</div>
</section>
}