<div class="row">
    <div class="col-md-6 offset-md-3">

        <form action="" method="post" name="hm" id="hm" enctype="multipart/form-data" class="form-horizontal form-label-left">
            <input type="hidden" name="storePassword" value="1" />

            <div class="card panel-info shadow-sm rounded">
                <div class="card-header">
                    <div class="row">
                        <div class="col-md-6">
                            <span class="fcs-card-title h4">[% $user->gettext('Eigenes Passwort &auml;ndern') %]</span>
                        </div>
                        <div class="col-md-6 text-end">
                            <div class="btn-group">
                                <input type="submit" value="[% $user->gettext('Passwort &auml;ndern') %]" class="btn btn-outline-primary" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    [% if $user->_URL == 'module=user&class=pwdchange' %]
                        <p>
                            <strong>[% $user->gettext('Bitte &auml;ndern Sie Ihr Passwort.') %]</strong>
                            <input type="hidden" name="changepw" value="1" />        
                        </p>    
                    [% /if %]

                    [% if $ErrorCode > 0 %]
                        <div class="alert alert-danger">
                            [% if $ErrorCode == 1 %][% $user->gettext('Das Passwort wurde aktualisiert') %]
                            [% /if %]
                            [% if $ErrorCode == 2 %][% $user->gettext('Kein neues Passwort angegeben') %]
                            [% /if %]
                            [% if $ErrorCode == 3 %][% $user->gettext('Die neue Passw&ouml;rter stimmen nicht &uuml;berein') %]
                            [% /if %]
                            [% if $ErrorCode == 4 %][% $user->gettext('Das alte Passwort ist nicht korrekt') %]
                            [% /if %]
                            [% if $ErrorCode == 5 %][% $user->gettext('Datenbankfehler beim Speichern') %]
                            [% /if %]
                            [% if $ErrorCode == 6 %][% $user->gettext('Das neue Passwort darf nicht identisch mit dem bisherigen Passwort sein') %]
                            [% /if %]                            
                        </div>
                    [% /if %]    
                    <div class="form-group row mb-3">
                        <label class="col-lg-4 control-label" for="oldPassword">[% $user->gettext('Altes Passwort:') %]</label>
                        <div class="col-lg-8">
                            <input type="password" name="oldPassword" maxlength="255" class="form-control" />
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="col-lg-4 control-label" for="newPassword">[% $user->gettext('Neues Passwort:') %]</label>
                        <div class="col-lg-8">
                            <input type="password" name="newPassword" maxlength="255" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group row mb-3">
                        <label class="col-lg-4 control-label" for="verifiedPassword">[% $user->gettext('Neues Passwort best&auml;tigen:') %]</label>
                        <div class="col-lg-8">
                            <input type="password" name="verifiedPassword" maxlength="255" class="form-control" />
                        </div>
                    </div>
                </div>
            </div> 
        </form>
    </div>
</div>
<!-- Component User begin -->
