Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
32
web/Views/FrontOffice/Brand.aspx
Normal file
32
web/Views/FrontOffice/Brand.aspx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Brand>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><% if (Model.Logo!=null) { %>
|
||||
<img src="<%=Model.Logo.Src%>" alt="<%=Model.Logo.Alt%>"/>
|
||||
<% } %>
|
||||
<%=Html.Encode(Model.Name)%></h1>
|
||||
<p><i><%=Html.Encode(Model.Slogan)%></i></p>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (ProductCategory pc in Model.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { id = Model.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = Model.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
32
web/Views/FrontOffice/Catalog.aspx
Normal file
32
web/Views/FrontOffice/Catalog.aspx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Catalog>" MasterPageFile="~/Models/App.master" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Brand b in Model.Brands ) { %><div>
|
||||
<h1> <%= Html.ActionLink( b.Name, "Brand", new { id = b.Name }, new { @class="actionlink" } ) %> </h1>
|
||||
<p><i><%= Html.Encode( b.Slogan ) %></i></p>
|
||||
<% foreach (ProductCategory pc in b.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { id = b.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = b.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div><% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
7
web/Views/FrontOffice/Command.aspx
Normal file
7
web/Views/FrontOffice/Command.aspx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<FormCollection collection>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
||||
30
web/Views/FrontOffice/Product.aspx
Normal file
30
web/Views/FrontOffice/Product.aspx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<PhysicalProduct>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
<title><%= Html.Encode(Model.Name) %></title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><%= Html.Encode(Model.Name) %></h1>
|
||||
<i><%= Html.Encode(Model.Reference) %></i></asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="product">
|
||||
<p><%= Html.Encode(Model.Description) %></p>
|
||||
<% if (Model.Images!=null) foreach (ProductImage i in Model.Images) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
<% if (Model.UnitaryPrice !=null) { %>
|
||||
Prix unitaire : <%= Html.Encode(Model.UnitaryPrice.Quantity.ToString())%>
|
||||
<%= Html.Encode(Model.UnitaryPrice.Unit.Name)%>
|
||||
<% } else { %> Gratuit! <% } %>
|
||||
</div>
|
||||
<div class="booking">
|
||||
<% if (Model.CommandForm!=null) { %>
|
||||
Défaut de formulaire de commande!!!
|
||||
<% } else { Response.Write( Html.CommandForm(Model,"Ajouter au panier")); } %>
|
||||
|
||||
<% if (Model.CommandValidityDates!=null) { %>
|
||||
Offre valable du <%= Model.CommandValidityDates.StartDate.ToString("dd/MM/yyyy") %> au
|
||||
<%= Model.CommandValidityDates.EndDate.ToString("dd/MM/yyyy") %>.
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
23
web/Views/FrontOffice/ProductCategory.aspx
Normal file
23
web/Views/FrontOffice/ProductCategory.aspx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<ProductCategory>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Product p in Model.Products ) { %>
|
||||
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = ViewData["BrandName"], pc = Model.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
|
||||
|
||||
<% } %>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
7
web/Views/FrontOffice/ReferenceNotFound.aspx
Normal file
7
web/Views/FrontOffice/ReferenceNotFound.aspx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
||||
31
web/Views/FrontOffice/Service.aspx
Normal file
31
web/Views/FrontOffice/Service.aspx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Service>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
<title><%= Html.Encode(Model.Name) %></title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><%=ViewData ["BrandName"]%> - <%=ViewData ["ProdCatName"]%> - <%= Html.ActionLink( Model.Name, "Product", new { id = ViewData ["BrandName"], pc = ViewData ["ProdCatRef"] , pref = Model.Reference } ) %></h1>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="service">
|
||||
<p><%= Html.Encode(Model.Description) %></p>
|
||||
<% if (Model.Images!=null) foreach (ProductImage i in Model.Images) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
<% if (Model.HourPrice !=null) { %>
|
||||
Prix horaire de la prestation :
|
||||
<%= Html.Encode(Model.HourPrice.Quantity.ToString())%>
|
||||
<%= Html.Encode(Model.HourPrice.Unit.Name)%>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<div class="booking">
|
||||
<%= Html.CommandForm(Model,"Ajouter au panier") %>
|
||||
|
||||
<% if (Model.CommandValidityDates!=null) { %>
|
||||
Offre valable du <%= Model.CommandValidityDates.StartDate.ToString("dd/MM/yyyy") %> au
|
||||
<%= Model.CommandValidityDates.EndDate.ToString("dd/MM/yyyy") %>.
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
Loading…
Add table
Add a link
Reference in a new issue