- Tags: remove a couple obsolete views/actions for the tags front end.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042115
This commit is contained in:
suhacan
2009-11-25 00:38:50 +00:00
parent 5119581bc4
commit 049f38a0af
3 changed files with 0 additions and 35 deletions

View File

@@ -78,26 +78,6 @@ namespace Orchard.Tags.Controllers {
}
}
public ActionResult Create() {
return View(new TagsCreateViewModel());
}
[HttpPost]
public ActionResult Create(FormCollection input) {
var viewModel = new TagsCreateViewModel();
try {
UpdateModel(viewModel, input.ToValueProvider());
if (!_authorizer.Authorize(Permissions.CreateTag, T("Couldn't create tag")))
return new HttpUnauthorizedResult();
_tagService.CreateTag(viewModel.TagName);
return RedirectToAction("Index");
}
catch (Exception exception) {
_notifier.Error(T("Creating Tag failed: " + exception.Message));
return View(viewModel);
}
}
public ActionResult TagName(int tagId) {
return RedirectToAction("Index");
}

View File

@@ -85,7 +85,6 @@
<Content Include="Views\Admin\Search.aspx" />
<Content Include="Views\Models\DisplayTemplates\HasTags.ascx" />
<Content Include="Views\Models\EditorTemplates\TagSettingsRecord.ascx" />
<Content Include="Views\Tags\Create.aspx" />
<Content Include="Views\Tags\Index.aspx" />
<Content Include="Web.config" />
<Content Include="Views\Web.config" />

View File

@@ -1,14 +0,0 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TagsCreateViewModel>" %>
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %>
<% Html.BeginForm(); %>
<%= Html.ValidationSummary() %>
<div class="yui-g">
<h2 class="separator">Add a Tag</h2>
<label for="TagName">Name:</label>
<input id="TagName" class="inputText inputTextLarge" name="TagName" type="text" value="<%= Model.TagName %>" />
<input type="submit" class="button" value="Save" />
</div>
<% Html.EndForm(); %>
<% Html.Include("Footer"); %>