UNPKG

ode-csslib-panda-manche

Version:

Panda theme by Open Digital Education

53 lines (52 loc) 2.4 kB
<div class="absolute"> <div class="centered container row"> <img class="logo" src="/assets/themes/[[currentTheme.child]]/img/illustrations/logo.png" alt="Logo de l'ENT"> <section class="main"> <div class="welcome-text" ng-if="!welcome.hideContent"> <div class="row"> <div class="twelve cell" bind-html="welcome.content"></div> </div> </div> <div class="panel" ng-class="{ 'lonely-panel': welcome.hideContent }"> <h1><img src="/auth/public/img/auth.png" /><span translate content="auth.reset.header"></span></h1> <p class="warning" translate content="[[error]]" ng-if="error"></p> <form method="post" ng-submit="reset()" name="resetForm"> <p> <label translate content="auth.email"></label> <input type="text" name="login" ng-model="user.login" ng-keydown="noSpace($event)" ng-change="noUpperCase()" name="login" tabindex="1" required /> <p class="input-errors" ng-if="resetForm.login.$invalid && resetForm.login.$dirty"> <span ng-repeat="(key, value) in resetForm.login.$error"> <label ng-if="value">[[lang.translate(key)]]</label> </span> </p> </p> <p> <label translate content="auth.activation.password"></label> <input-password required ng-pattern="passwordRegex" ng-model="user.password" ng-change="refreshInput(resetForm, 'confirmPassword')" name="password" ng-trim="false" tabindex="2"></input-password> <p class="input-errors" ng-if="resetForm.password.$invalid && resetForm.password.$dirty"> <i18n>password.errors</i18n><br /> <span ng-repeat="(key, value) in resetForm.password.$error"> <label ng-if="value">[[lang.translate(key)]]</label> </span> </p> <label translate content="auth.activation.confirm.password"></label> <input-password required ng-model="user.confirmPassword" name="confirmPassword" ng-trim="false" tabindex="3"></input-password> <p class="input-errors" ng-if="user.password !== '' && user.confirmPassword && user.confirmPassword !== '' && user.confirmPassword !== user.password"> <i18n>password.identical</i18n> </p> </p> <p> <input type="submit" translate attr="value" value="auth.reset" ng-disabled="resetForm.$invalid" tabindex="4" /> </p> <div class="clear"></div> </form> </div> </section> </div> </div>