@Master['master.html']
@Model['ChangePasswordViewModel']
@Section['Content']
<form class="mt-3" method="post" action="/Config/ChangePassword">
    <div class="row mt-2">
        <div class="control-group mb-3">
            <div class="controls">
                <button type="submit" class="btn btn-primary">Passwort ändern</button>
            </div>
        </div>
    </div>

    @If.EditUserValidationInfo.Invalid
    <div class="alert alert-danger" role="alert">Ihre Eingaben sind ungültig, bitte korrigieren!</div>
    @EndIf

    @If.SuccessfulSaved
    <div class="alert alert-success" role="alert">Ihr Passwort wurde aktualisiert.</div>
    @EndIf

    <div class="row mt-2">
        <h3>
            Passwort für Benutzer '@Model.UserName' ändern
            <small class="text-muted"></small>
        </h3>
    </div>

    <input type="hidden" id="Id" name="Id" value="@Model.Id">
    <p><span class="badge badge-secondary">Neues Passwort eingeben</span></p>
    <div class="row">
        <div class="col">
            <div class="form-group">
                <small id="VertecApiTokenHelp" class="form-text text-muted">Neues Password</small>
                <input type="password" class="form-control @If.PasswordInvalid is-invalid @EndIf" id="Password" name="Password" value="@!Model.Password" aria-describedby="PasswordHelp" placeholder="Bitte eingeben.">
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col">
            <div class="form-group">
                <small id="VertecApiTokenHelp" class="form-text text-muted">Neues Password wiederholen</small>
                <input type="password" class="form-control @If.PasswordConfirmInvalid is-invalid @EndIf" id="PasswordConfirm" name="PasswordConfirm" value="@!Model.PasswordConfirm" aria-describedby="PasswordRepeatedHelp" placeholder="Bitte eingeben.">
            </div>
        </div>
    </div>

</form>
@EndSection
