<%@ Page Title="Bill_edition" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %> <%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>

<%=Html.Markdown(Model.Title)%>

<%=Html.Markdown(Model.Content,"/bfiles/"+Model.Id+"/")%>
<% using(Html.BeginForm("ValidateEdit","Blogs")) { %> <%= Html.LabelFor(model => model.Title) %> <%= Html.ValidationMessage("Title") %> :

<%= Html.LabelFor(model => model.Content) %> <%= 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("Author")%> <%=Html.Hidden("Id")%> <% } %>
(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.Author, title = Model.Title }, new { @class="actionlink" } ) %>