Updates to commenting UI.

--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-10-15 14:38:27 -07:00
parent 88fe32ce2b
commit 089e8e63c9
3 changed files with 17 additions and 9 deletions

View File

@@ -42,10 +42,12 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
@Html.Hidden("Name", WorkContext.CurrentUser.UserName ?? "") @Html.Hidden("Name", WorkContext.CurrentUser.UserName ?? "")
@Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "") @Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "")
} }
<h2 id="commenter">@if (Request.IsAuthenticated) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}</h2>
<fieldset class="what"> <fieldset class="what">
<ol> <ol>
<li> <li>
<label for="CommentText">@if (Request.IsAuthenticated) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))<br /> } @T("Comment")</label> <label for="CommentText">@T("Comment")</label>
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea> <textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea>
</li> </li>
<li> <li>

View File

@@ -5,21 +5,23 @@
@Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString()) @Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())
@using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { @using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) {
<fieldset class="login-form"> <fieldset class="login-form group">
<legend>@T("Account Information")</legend> <legend>@T("Account Information")</legend>
<div class="group"> <ol>
<li>
<label for="userNameOrEmail">@T("Username:")</label> <label for="userNameOrEmail">@T("Username:")</label>
@Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" }) @Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })
@Html.ValidationMessage("userNameOrEmail") @Html.ValidationMessage("userNameOrEmail")
</div> </li>
<div class="group"> <li>
<label for="password">@T("Password:")</label> <label for="password">@T("Password:")</label>
@Html.Password("password") @Html.Password("password")
@Html.ValidationMessage("password") @Html.ValidationMessage("password")
</div> </li>
<div class="group"> <li>
@Html.CheckBox("rememberMe")<label class="forcheckbox" for="rememberMe">@T("Remember me?")</label> @Html.CheckBox("rememberMe")<label class="forcheckbox" for="rememberMe">@T("Remember me?")</label>
</div> </li>
<input type="submit" value="@T("Log On")" /> <input type="submit" value="@T("Log On")" />
</ol>
</fieldset> </fieldset>
} }

View File

@@ -401,12 +401,16 @@ button:focus, .button:focus {
/* For testing purposes */ /* For testing purposes */
#comments { #comments, #commenter {
font-size:1.6em; font-size:1.6em;
font-weight:600; font-weight:600;
margin:1.2em 0 1.8em 1.2em; margin:1.2em 0 1.8em 1.2em;
} }
#commenter {
margin:1.2em 0 0 1em;
}
ul.comments, form.comment { ul.comments, form.comment {
margin:1.2em 0 1.2em 1.8em; margin:1.2em 0 1.2em 1.8em;
list-style: none; list-style: none;