<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master"%>

"> " alt="from <%=ViewData["UserName"]%>"/> <%= Html.Encode(ViewData["BlogTitle"]) %> - Nouveau billet - <%= Html.Encode(YavscHelpers.SiteName) %>

<%= Html.Encode(ViewData["Message"]) %>
<%= Html.Encode(ViewData["Message"]) %>
<% if (Model != null ) if (Model.Content != null ) { %>
<%= BBCodeHelper.Parser.ToHtml(Model.Content) %>
<% } %>
<%= Html.ValidationSummary() %> <% using(Html.BeginForm("ValidatePost", "Blogs")) %> <% { %> <%= Html.LabelFor(model => model.Title) %>:
<%= Html.TextBox( "Title" ) %> <%= Html.ValidationMessage("Title", "*") %>
Usage BBcodes :
    <% foreach (string usage in BBCodeHelper.BBTagsUsage) { %>
  • <%= usage %>
  • <% } %>
<%= Html.LabelFor(model => model.Content) %>:
<%= Html.TextArea( "Content", new { @class="editblog", @rows="15" }) %> <%= Html.ValidationMessage("Content", "*") %>
<%= Html.CheckBox( "Visible" ) %> <%= Html.LabelFor(model => model.Visible) %> <%= Html.ValidationMessage("Visible", "*") %>
<%= Html.CheckBox( "Preview" ) %> <%= Html.LabelFor(model => model.Preview) %> <%= Html.ValidationMessage("Preview", "*") %>
<%= Html.Hidden("Id") %> <% } %>