@using SolidCP.WebDavPortal.Resources
@using SolidCP.WebDavPortal.UI.Routes
@model SolidCP.WebDavPortal.Models.Account.PasswordChangeModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container row">
    @using (Html.BeginRouteForm(AccountRouteNames.PasswordChange, FormMethod.Post, new { @class = "form-horizontal user-password-change bs-val-styles col-lg-10 col-lg-offset-3", id = "user-password-change" }))
    {
        <div class="form-group">
            <h3>@UI.ChangePassword</h3>
        </div>
        <div class="form-group">
            <label for="@Html.IdFor(x => x.OldPassword)" class="col-sm-2 control-label">@UI.OldPassword</label>
            <div class="col-sm-10">
                @Html.PasswordFor(x => x.OldPassword, new { @class = "form-control", placeholder = UI.OldPassword })
                @Html.ValidationMessageFor(x => x.OldPassword)
            </div>
        </div>

        @Html.EditorFor(x=>x.PasswordEditor)

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">@UI.ChangePassword</button>
            </div>
        </div>
    }
</div>

