Last of the yui related markup cleanup

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043781
This commit is contained in:
skewed
2009-12-11 08:29:52 +00:00
parent ff412f1f7e
commit f9be656e6c
20 changed files with 267 additions and 759 deletions

View File

@@ -2,34 +2,21 @@
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %>
<%= Html.ValidationSummary() %>
<div class="yui-g">
<h2 class="separator">Add a Comment</h2>
<h3>Information</h3>
<ol>
<li>
<label for="Name">Name:</label>
<input id="Text1" class="inputText inputTextLarge" name="Name" type="text" value="<%= Model.Name %>" />
</li>
<li>
<label for="Email">Email:</label>
<input id="Email" class="inputText inputTextLarge" name="Email" type="text" value="<%= Model.Email%>" />
</li>
<li>
<label for="SiteName">SiteName:</label>
<input id="SiteName" class="inputText inputTextLarge" name="SiteName" type="text" value="<%= Model.SiteName %>" />
</li>
<li>
<label for="CommentText">Leave a comment</label>
<textarea id="CommentText" rows="10" cols="30" name="CommentText">
<%= Model.CommentText %>
</textarea>
</li>
<li>
<input type="submit" class="button" value="Save" />
</li>
</ol>
</div>
<% Html.EndForm(); %>
<h2>Add Comment</h2>
<% using(Html.BeginForm()) { %>
<%= Html.ValidationSummary() %>
<fieldset class="who">
<label for="CommentName">Name</label>
<input id="CommentName" class="text" name="Name" type="text" value="<%=Model.Name %>" /><br />
<label for="CommentEmail">Email</label>
<input id="CommentEmail" class="text" name="Email" type="text" value="<%=Model.Email%>" /> <br />
<label for="CommentSiteName">SiteName</label>
<input id="CommentSiteName" class="text" name="SiteName" type="text" value="<%=Model.SiteName %>" />
</fieldset>
<fieldset class="what">
<label for="CommentText">Leave a comment</label>
<textarea id="CommentText" rows="10" cols="30" name="CommentText"><%=Model.CommentText %></textarea>
<input type="submit" class="button" value="Save" />
</fieldset>
<% } %>
<% Html.Include("AdminFoot"); %>

View File

@@ -3,46 +3,32 @@
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("AdminHead"); %>
<% Html.BeginForm(); %>
<%= Html.ValidationSummary() %>
<div class="yui-g">
<h2 class="separator">Edit a Comment</h2>
<h3>Information</h3>
<ol>
<li>
<label for="Name">Name:</label>
<input id="CommentId" name="Id" type="hidden" value="<%=Model.Id %>" />
<input id="Text1" class="inputText inputTextLarge" name="Name" type="text" value="<%= Model.Name %>" />
</li>
<li>
<label for="Email">Email:</label>
<input id="Email" class="inputText inputTextLarge" name="Email" type="text" value="<%= Model.Email%>" />
</li>
<li>
<label for="SiteName">SiteName:</label>
<input id="SiteName" class="inputText inputTextLarge" name="SiteName" type="text" value="<%= Model.SiteName %>" />
</li>
<li>
<label for="CommentText">Leave a comment</label>
<textarea id="CommentText" rows="10" cols="30" name="CommentText">
<%= Model.CommentText %>
</textarea>
</li>
<h3>Status</h3>
<li>
<label for="Status_Approved">
<%=Html.RadioButton("Status", "Approved", (Model.Status == CommentStatus.Approved), new { id = "Status_Approved" }) %> Approved
</label>
</li>
<li>
<label for="Status_Spam">
<%=Html.RadioButton("Status", "Spam", (Model.Status == CommentStatus.Spam), new { id = "Status_Spam" }) %> Mark As Spam
</label>
</li>
<li>
<input type="submit" class="button" value="Save" />
</li>
</ol>
</div>
<% Html.EndForm(); %>
<h2>Edit Comment</h2>
<% using(Html.BeginForm()) { %>
<%= Html.ValidationSummary() %>
<fieldset class="who">
<label for="CommentName">Name</label>
<input id="CommentName" class="text" name="Name" type="text" value="<%=Model.Name %>" /><br />
<label for="CommentEmail">Email</label>
<input id="CommentEmail" class="text" name="Email" type="text" value="<%=Model.Email%>" /> <br />
<label for="CommentSiteName">SiteName</label>
<input id="CommentSiteName" class="text" name="SiteName" type="text" value="<%=Model.SiteName %>" />
</fieldset>
<fieldset class="what">
<label for="CommentText">Leave a comment</label>
<textarea id="Textarea1" rows="10" cols="30" name="CommentText"><%=Model.CommentText %></textarea>
<input id="CommentId" name="Id" type="hidden" value="<%=Model.Id %>" />
</fieldset>
<fieldset>
<label for="Status_Approved">
<%=Html.RadioButton("Status", "Approved", (Model.Status == CommentStatus.Approved), new { id = "Status_Approved" }) %> Approved
</label>
<label for="Status_Spam">
<%=Html.RadioButton("Status", "Spam", (Model.Status == CommentStatus.Spam), new { id = "Status_Spam" }) %> Mark As Spam
</label>
</fieldset>
<fieldset>
<input type="submit" class="button" value="Save" />
</fieldset>
<% } %>
<% Html.Include("AdminFoot"); %>