mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Updates to commenting UI.
--HG-- branch : dev
This commit is contained in:
@@ -42,10 +42,12 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
|
||||
@Html.Hidden("Name", WorkContext.CurrentUser.UserName ?? "")
|
||||
@Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "")
|
||||
}
|
||||
|
||||
<h2 id="commenter">@if (Request.IsAuthenticated) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}</h2>
|
||||
<fieldset class="what">
|
||||
<ol>
|
||||
<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>
|
||||
</li>
|
||||
<li>
|
||||
|
@@ -5,21 +5,23 @@
|
||||
@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"]}))) {
|
||||
<fieldset class="login-form">
|
||||
<fieldset class="login-form group">
|
||||
<legend>@T("Account Information")</legend>
|
||||
<div class="group">
|
||||
<ol>
|
||||
<li>
|
||||
<label for="userNameOrEmail">@T("Username:")</label>
|
||||
@Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })
|
||||
@Html.ValidationMessage("userNameOrEmail")
|
||||
</div>
|
||||
<div class="group">
|
||||
</li>
|
||||
<li>
|
||||
<label for="password">@T("Password:")</label>
|
||||
@Html.Password("password")
|
||||
@Html.ValidationMessage("password")
|
||||
</div>
|
||||
<div class="group">
|
||||
</li>
|
||||
<li>
|
||||
@Html.CheckBox("rememberMe")<label class="forcheckbox" for="rememberMe">@T("Remember me?")</label>
|
||||
</div>
|
||||
</li>
|
||||
<input type="submit" value="@T("Log On")" />
|
||||
</ol>
|
||||
</fieldset>
|
||||
}
|
@@ -401,12 +401,16 @@ button:focus, .button:focus {
|
||||
|
||||
|
||||
/* For testing purposes */
|
||||
#comments {
|
||||
#comments, #commenter {
|
||||
font-size:1.6em;
|
||||
font-weight:600;
|
||||
margin:1.2em 0 1.8em 1.2em;
|
||||
}
|
||||
|
||||
#commenter {
|
||||
margin:1.2em 0 0 1em;
|
||||
}
|
||||
|
||||
ul.comments, form.comment {
|
||||
margin:1.2em 0 1.2em 1.8em;
|
||||
list-style: none;
|
||||
|
Reference in New Issue
Block a user