@using SolidCP.WebDavPortal.Resources
@model SolidCP.WebDavPortal.Models.Common.EditorTemplates.PasswordEditor
           
@{
    var settings = Model.Settings;
    var maxlength = settings != null ? settings.MaximumLength : 20;
}
<div class="form-group">
    <label for="@Html.IdFor(x => x.NewPassword)" class="col-sm-2 control-label">@UI.NewPassword</label>
    <div class="col-sm-10">
        @Html.PasswordFor(x => x.NewPassword, new { @class = "form-control password-input", placeholder = UI.NewPassword,  maxlength })
        @Html.Raw(HttpUtility.HtmlDecode(Html.ValidationMessageFor(m => m.NewPassword).ToHtmlString()))
    </div>
</div>

<div class="form-group">
    <label for="@Html.IdFor(x => x.NewPasswordConfirmation)" class="col-sm-2 control-label">@UI.NewPasswordConfirmation</label>
    <div class="col-sm-10">
        @Html.PasswordFor(x => x.NewPasswordConfirmation, new { @class = "form-control" , placeholder = UI.NewPasswordConfirmation, maxlength })
        @Html.ValidationMessageFor(x => x.NewPasswordConfirmation)
    </div>
</div>
