* Web.config: Trace may be enabled, as long it is in local mode
* Web.csproj: * RemoveTitle.aspx: Removes all posts related to a given title * RemovePost.aspx: Removes a single bill
This commit is contained in:
parent
da90e2cb10
commit
bfb3e7d973
5 changed files with 37 additions and 3 deletions
|
|
@ -8,11 +8,12 @@
|
|||
<%= Html.LabelFor(model => model.Title) %> :
|
||||
<%= Html.TextBox( "Title" ) %>
|
||||
<%= Html.ValidationMessage("Title", "*") %><br/>
|
||||
|
||||
Identifiant du post : <%= ViewData["pid"] %><br/>
|
||||
<span class="preview"><%= Html.Markdown(Model.Content) %></span>
|
||||
<label for="confirm">supprimer le billet</label>
|
||||
<%= Html.CheckBox( "confirm" ) %>
|
||||
<%= Html.ValidationMessage("AgreeToRemove", "*") %>
|
||||
|
||||
<%= Html.Hidden("pid") %>
|
||||
<%= Html.Hidden("returnUrl") %>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
|
|
|
|||
22
web/Views/Blogs/RemoveTitle.aspx
Normal file
22
web/Views/Blogs/RemoveTitle.aspx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using (Html.BeginForm("RemoveTitle","Blogs")) { %>
|
||||
|
||||
<%= Html.LabelFor(model => model.Title) %> :
|
||||
<%= Html.TextBox( "Title" ) %>
|
||||
<%= Html.ValidationMessage("Title", "*") %><br/>
|
||||
<%= Html.Hidden("UserName") %>
|
||||
<label for="confirm">supprimer le billet</label>
|
||||
<%= Html.CheckBox( "confirm" ) %>
|
||||
<%= Html.ValidationMessage("AgreeToRemove", "*") %>
|
||||
|
||||
<%= Html.Hidden("returnUrl") %>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue