@using MvcResourceLang.Models;
@model MvcResourceLang.Models.Account
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@Html.GetLangbyKey("LogonDisplay")</title>
    @Styles.Render("~/Content/css")
</head>

<body>
    <div>
        @{
            string controller = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString();
            string action = ViewContext.Controller.ValueProvider.GetValue("action").RawValue.ToString();
            //string lang = ViewContext.Controller.ValueProvider.GetValue("lang").RawValue.ToString();
        }
        @Html.ActionLink("中文", action, new { Controller = controller, lang = "zh-CN" }, new { @class = "btn-a" })
        @Html.ActionLink("English", action, new { Controller = controller, lang = "en-US" }, new { @class = "btn-a" })
    </div>
    <h2>@Html.GetLangbyKey("LogonDisplay")</h2>

    <div class="logon-div">
        @using (Html.BeginForm()) {
            <table>
                <tr>
                    <td>@Html.LabelFor(m => m.UserName)</td>
                    <td>@Html.TextBoxFor(m => m.UserName, new { style = "width:100%" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Pwd)</td>
                    <td>@Html.PasswordFor(m => m.Pwd, new { style = "width:100%" })</td>
                </tr>
                <tr>

                    <td colspan="2">@Html.CheckBoxFor(m => m.Rememberme)
                        @Html.LabelFor(m => m.Rememberme)
                        <input type="submit" value="@Html.GetLangbyKey("LogonDisplay")" style="float:right;"/>
                </tr>
                <tr style="font-size: 12px;">

                    <td colspan="2">
                    @Html.GetLangbyKey("NoteDisplay") @Html.ActionLink(Html.GetLangbyKey("RegisterDisplay"), "Register", null, null) .                       
                </tr>
            </table>
        }
    </div>
</body>
</html>
