<%@ Page Title="Devis" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %> <%= Html.ValidationSummary("Devis") %> <% using (Html.BeginForm("Estimate","FrontOffice")) { %> <%= Html.LabelFor(model => model.Title) %>:
<%= Html.TextBox( "Title" ) %> <%= Html.ValidationMessage("Title", "*") %> <% if (Model.Id > 0) { %>
<%= Html.LabelFor(model => model.Owner) %>:<%=Model.Owner%> <%= Html.ValidationMessage("Owner", "*") %>
<%= Html.LabelFor(model => model.Ciffer) %>:<%=Model.Ciffer%>
<%= Html.LabelFor(model => model.Id) %>:<%=Model.Id%> <%= Html.Hidden( "Id" ) %>
<% if (Model.Lines ==null || Model.Lines.Length == 0) { %> Pas de ligne. <% } else { %> <% } %> <% } %> <% if (Model.Id==0) { %> <% } else { %> <% } %> <% } %>