Fixes the blog post removal

This commit is contained in:
Paul Schneider 2014-09-23 03:27:51 +02:00
commit a4d2e1b6da
5 changed files with 16 additions and 10 deletions

View file

@ -9,20 +9,22 @@
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<form runat="server">
<%= Html.ValidationSummary() %>
<% using (Html.BeginForm("Remove","Blogs")) { %>
suivant :
<%= Html.LabelFor(model => model.Title) %>:<br/>
<% using (Html.BeginForm("RemovePost","Blogs")) { %>
<%= Html.LabelFor(model => model.Title) %> :
<%= Html.TextBox( "Title" ) %>
<%= Html.ValidationMessage("Title", "*") %>
<%= Html.ValidationMessage("Title", "*") %><br/>
<label for="confirm">supprimer le billet</label>
<input type="checkbox" name="confirm" />
<%= Html.CheckBox( "confirm" ) %>
<%= Html.ValidationMessage("AgreeToRemove", "*") %>
<%= Html.Hidden("returnUrl") %>
<input type="submit"/>
<% } %>
</form>
</asp:Content>