mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Moved antiforgery generation into our own beginform helper.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044036
This commit is contained in:
@@ -3,12 +3,9 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Add Blog</h2>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(vm => vm.Blog) %>
|
||||
<fieldset>
|
||||
<%=Html.OrchardAntiForgeryToken() %>
|
||||
<input class="button" type="submit" value="Create" />
|
||||
</fieldset><%
|
||||
<fieldset><input class="button" type="submit" value="Create" /></fieldset><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -3,12 +3,9 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Edit Blog</h2>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.Blog) %>
|
||||
<fieldset>
|
||||
<%=Html.OrchardAntiForgeryToken() %>
|
||||
<input class="button" type="submit" value="Save" />
|
||||
</fieldset><%
|
||||
<fieldset><input class="button" type="submit" value="Save" /></fieldset><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -3,9 +3,8 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Add Post</h2>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %>
|
||||
<%=Html.OrchardAntiForgeryToken() %><%
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -3,9 +3,8 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Edit Post</h2>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %>
|
||||
<%=Html.OrchardAntiForgeryToken() %><%
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
Reference in New Issue
Block a user