
* T.cs: * IModule.cs: * App.master: * IProvider.cs: * Error.aspx: * AOEMail.aspx: * Login.aspx: * Index.aspx: * Admin.aspx: * yavscModel.csproj: * WFManager.cs: * Index.aspx: * AddRole.aspx: * Profile.aspx: * Edit.aspx: * Register.aspx: * Index.aspx: * RoleList.aspx: * UserList.aspx: * Validate.aspx: * RemovePost.aspx: * Index.aspx: * BasketImpact.cs: * Brand.aspx: * Delete.aspx: * Create.aspx: * Backups.aspx: * HomeController.cs: * BlogManager.cs: * Restore.aspx: * Details.aspx: * TitleNotFound.aspx: * Product.aspx: * AdminController.cs: * Command.aspx: * Service.aspx: * BlogProvider.cs: * NewProject.aspx: * Catalog.aspx: * Restored.aspx: * BasketController.cs: * AccountController.cs: * WorkFlowController.cs: * BlogsApiController.cs: * ChangePassword.aspx: * RemoveRoleQuery.aspx: * CreateBackup.aspx: * IContentProvider.cs: * BackOfficeController.cs: * FrontOfficeController.cs: * NpgsqlBlogProvider.cs: * NpgsqlContentProvider.cs: * RegistrationPending.aspx: * ProductCategory.aspx: * FrontOfficeApiController.cs: * ChangePasswordSuccess.aspx: * ReferenceNotFound.aspx: * BackupCreated.aspx Fixes many HTTP 500 Refactoring on the go
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Brand>" MasterPageFile="~/Models/App.master" %>
|
|
|
|
<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>
|