4077-login_recover-password & account_verifyEmail #1063
|
@ -3,7 +3,11 @@
|
||||||
</vn-layout>
|
</vn-layout>
|
||||||
<ui-view
|
<ui-view
|
||||||
name="login"
|
name="login"
|
||||||
ng-if="!$ctrl.showLayout">
|
ng-if="!$ctrl.showLayout && !$ctrl.isRecover">
|
||||||
|
</ui-view>
|
||||||
|
<ui-view
|
||||||
|
name="recover-password"
|
||||||
|
ng-if="!$ctrl.showLayout && $ctrl.isRecover">
|
||||||
</ui-view>
|
</ui-view>
|
||||||
<vn-snackbar vn-id="snackbar"></vn-snackbar>
|
<vn-snackbar vn-id="snackbar"></vn-snackbar>
|
||||||
<vn-debug-info></vn-debug-info>
|
<vn-debug-info></vn-debug-info>
|
||||||
|
|
|
@ -15,7 +15,12 @@ export default class App extends Component {
|
||||||
|
|
||||||
get showLayout() {
|
get showLayout() {
|
||||||
let state = this.$state.current.name;
|
let state = this.$state.current.name;
|
||||||
return state && state != 'login';
|
return state && !state.includes('login');
|
||||||
|
}
|
||||||
|
|
||||||
|
get isRecover() {
|
||||||
|
let state = this.$state.current.name;
|
||||||
|
return state == 'login.recover-password';
|
||||||
}
|
}
|
||||||
|
|
||||||
$onDestroy() {
|
$onDestroy() {
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
User: Usuario
|
User: Usuario
|
||||||
Password: Contraseña
|
Password: Contraseña
|
||||||
|
Email: Correo electrónico
|
||||||
Do not close session: No cerrar sesión
|
Do not close session: No cerrar sesión
|
||||||
Enter: Entrar
|
Enter: Entrar
|
||||||
I do not remember my password: No recuerdo mi contraseña
|
I do not remember my password: No recuerdo mi contraseña
|
||||||
|
Recover password: Recuperar contraseña
|
||||||
|
We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña
|
||||||
|
|
|
@ -1,11 +1,21 @@
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<img src="./logo.svg"/>
|
|
||||||
<form name="form" ng-submit="$ctrl.submit()">
|
<form name="form" ng-submit="$ctrl.submit()">
|
||||||
|
<h5 class="vn-mb-lg" translate>Recover password</h5>
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
label="User"
|
label="Email"
|
||||||
ng-model="$ctrl.user"
|
ng-model="$ctrl.email"
|
||||||
vn-id="userField"
|
|
||||||
vn-focus>
|
vn-focus>
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
|
<div
|
||||||
|
class="text-secondary"
|
||||||
|
translate>
|
||||||
|
We will sent you an email to recover your password
|
||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<vn-submit label="Recover password"></vn-submit>
|
||||||
|
<div class="spinner-wrapper">
|
||||||
|
<vn-spinner enable="$ctrl.loading"></vn-spinner>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
vn-login {
|
vn-login,
|
||||||
|
vn-recover-password{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -61,6 +62,16 @@ vn-login {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h5{
|
||||||
|
color: $color-primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-secondary{
|
||||||
|
text-align: center;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
|
|
|
@ -10,15 +10,13 @@ function config($stateProvider, $urlRouterProvider) {
|
||||||
url: '/login?continue',
|
url: '/login?continue',
|
||||||
description: 'Login',
|
description: 'Login',
|
||||||
views: {
|
views: {
|
||||||
login: {template: '<vn-login></vn-login>'}
|
'login': {template: '<vn-login></vn-login>'},
|
||||||
|
'recover-password': {template: '<vn-recover-password></vn-recover-password>'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('login.recover-password', {
|
.state('login.recover-password', {
|
||||||
url: '/recover-password',
|
url: '/recover-password',
|
||||||
description: 'Recover-password',
|
description: 'Recover-password'
|
||||||
views: {
|
|
||||||
recoverPassword: {template: '<vn-recover-password></vn-recover-password>'}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.state('home', {
|
.state('home', {
|
||||||
url: '/',
|
url: '/',
|
||||||
|
|
Loading…
Reference in New Issue