- Blogs: Some refining on the tags display view for blogposts.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042876
This commit is contained in:
suhacan
2009-12-02 00:12:35 +00:00
parent afad28b2ad
commit 571bf27a21

View File

@@ -5,26 +5,10 @@
<% Html.BeginForm("Edit", "Home", new { area = "Orchard.Tags" }); %>
<%= Html.ValidationSummary() %>
<div class="yui-g">
<h2 class="separator">Edit Tags</h2>
<%= Html.Hidden("TaggedContentId", Model.ContentItem.Id) %>
<%= Html.Hidden("ReturnUrl", Context.Request.Url) %>
<h3>Choose from existing tags</h3>
<ol>
<% foreach (var tag in Model.AllTags) { %>
<li>
<label for"<%= tag.TagName %>"><%= tag.TagName %>:</label>
<% if (Model.CurrentTags.Contains(tag)) {%>
<input type="checkbox" value="true" checked="checked" name="Checkbox.<%=tag.Id%>"/>
<% } else {%>
<input type="checkbox" value="true" name="Checkbox.<%=tag.Id%>"/>
<% } %>
</li>
<% } %>
<li>
<input type="submit" class="button" name="submit.Save" value="Save" />
</li>
</ol>
<h3>Or add a new tag</h3>
<h3>Add a new tag</h3>
<ol>
<li>
<input id="NewTagName" class="inputText inputTextLarge" name="NewTagName" type="text" value="" />