<%@ Page Title="Bill_edition" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %> <%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %> "> <% if (Model != null ) if (Model.Content != null ) { %> <%= Html.ActionLink(Model.Title,"UserPost",new{user=Model.UserName,title=Model.Title,id=Model.Id}) %> <% } %> <%= Html.ValidationSummary("Edition du billet") %> <% using(Html.BeginForm("ValidateEdit","Blogs")) { %> <%= Html.LabelFor(model => model.Title) %>:
<%= Html.TextBox( "Title" ) %> <%= Html.ValidationMessage("Title", "*") %>
<%= Html.LabelFor(model => model.Content) %>:
<%= Html.TextArea( "Content" , new { @class="mdd_editor"}) %>
<%= Html.ValidationMessage("Content", "*") %>
<%= Html.CheckBox( "Visible" ) %> <%= Html.LabelFor(model => model.Visible) %> <%= Html.ValidationMessage("Visible", "*") %>
<%= Html.LabelFor(model => model.AllowedCircles) %> <%= Html.ListBox("AllowedCircles") %> <%= Html.ValidationMessage("AllowedCircles", "*") %> <%= Html.Hidden("Id") %> <%= Html.Hidden("UserName") %>
<% } %> <% if (Model.Id!=0) { %>
<% } %>
(Id: <%= Model.Id %>, <%= Model.Posted.ToString("yyyy/MM/dd") %> - <%= Model.Modified.ToString("yyyy/MM/dd") %> <%= Model.Visible? "":", Invisible!" %>) <%= Html.ActionLink("Supprimer","RemovePost", new { user=Model.UserName, title = Model.Title }, new { @class="actionlink" } ) %>