2011-01-06 15:29:28 -08:00
|
|
|
@using Orchard.ContentManagement;
|
2010-11-04 15:13:15 -07:00
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
var userCanRegister = @WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().UsersCanRegister;
|
2010-11-30 17:19:13 -08:00
|
|
|
var enableLostPassword = @WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().EnableLostPassword;
|
2010-11-04 15:13:15 -07:00
|
|
|
}
|
2010-09-09 17:02:04 -07:00
|
|
|
|
2011-01-06 15:29:28 -08:00
|
|
|
<h1 class="page-title">@Html.TitleForPage((string)Model.Title)</h1>
|
2010-11-26 17:02:22 -08:00
|
|
|
<p>
|
|
|
|
|
@T("Please enter your username and password.")
|
|
|
|
|
@if(userCanRegister) { @Html.ActionLink(T("Register").Text, "Register") @T(" if you don't have an account.") }
|
2011-10-14 10:15:08 -07:00
|
|
|
@if(enableLostPassword) { <text> </text> @Html.ActionLink(T("Lost your Password?").Text, "RequestLostPassword") }
|
2010-11-26 17:02:22 -08:00
|
|
|
</p>
|
2010-09-09 17:02:04 -07:00
|
|
|
@Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())
|
|
|
|
|
|
2010-11-26 17:02:22 -08:00
|
|
|
@using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new { ReturnUrl = Request.QueryString["ReturnUrl"] }))) {
|
2010-10-15 14:38:27 -07:00
|
|
|
<fieldset class="login-form group">
|
2010-09-09 17:02:04 -07:00
|
|
|
<legend>@T("Account Information")</legend>
|
2010-10-15 14:38:27 -07:00
|
|
|
<ol>
|
|
|
|
|
<li>
|
2010-10-19 14:19:32 -07:00
|
|
|
<label for="username-email">@T("Username")</label>
|
2010-10-19 16:07:13 -07:00
|
|
|
@Html.TextBox("userNameOrEmail", "", new { id = "username-email", autofocus = "autofocus" })
|
2010-09-09 17:02:04 -07:00
|
|
|
@Html.ValidationMessage("userNameOrEmail")
|
2010-10-15 14:38:27 -07:00
|
|
|
</li>
|
|
|
|
|
<li>
|
2010-10-19 14:19:32 -07:00
|
|
|
<label for="password">@T("Password")</label>
|
2010-09-09 17:02:04 -07:00
|
|
|
@Html.Password("password")
|
|
|
|
|
@Html.ValidationMessage("password")
|
2010-10-15 14:38:27 -07:00
|
|
|
</li>
|
2010-11-04 15:13:15 -07:00
|
|
|
<button class="primaryAction" type="submit">@T("Sign In")</button>
|
2010-10-15 14:38:27 -07:00
|
|
|
</ol>
|
2010-09-09 17:02:04 -07:00
|
|
|
</fieldset>
|
|
|
|
|
}
|