2015-05-05 03:10:25 +02:00
|
|
|
<div class="" id="loginModal">
|
|
|
|
<div class="modal-header">
|
2016-03-23 18:39:41 +01:00
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2021-03-08 14:21:58 +01:00
|
|
|
<i class="fa fa-times close-modal-button" ng-click="dismiss()"></i>
|
2020-12-30 15:37:15 +01:00
|
|
|
<h1 translate translate-default="Login">
|
2019-12-18 13:04:38 +01:00
|
|
|
{{ 'app.public.common.connection' }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</h1>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-03-23 18:39:41 +01:00
|
|
|
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
|
|
|
<div class="panel panel-default bg-light">
|
|
|
|
<div class="panel-body">
|
|
|
|
<form name="loginForm" class="form-horizontal" ng-keydown="loginForm.$valid && $event.which == 13 && login()">
|
|
|
|
<div class="form-group" ng-class="{'has-error': emailError}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
2016-03-23 18:39:41 +01:00
|
|
|
<span class="input-group-addon">
|
|
|
|
<i class="fa fa-envelope"></i>
|
|
|
|
</span>
|
|
|
|
<input type="email"
|
|
|
|
name="email"
|
|
|
|
class="form-control"
|
|
|
|
ng-model="user.email"
|
2021-03-24 18:24:03 +01:00
|
|
|
required="true"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-blur="emailError = !!loginForm.email.$error.email"
|
|
|
|
ng-focus="emailError = false"
|
2020-12-30 15:37:15 +01:00
|
|
|
translate-attr="{ placeholder: 'app.public.common.your_email_address' }" />
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="password"
|
|
|
|
name="password"
|
|
|
|
class="form-control"
|
|
|
|
ng-model="user.password"
|
2021-03-24 18:24:03 +01:00
|
|
|
required="true"
|
2020-12-30 15:37:15 +01:00
|
|
|
translate-attr="{ placeholder: 'app.public.common.your_password' }"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-minlength="8"/>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2022-01-11 11:03:27 +01:00
|
|
|
<a ng-click="openResetPassword($event)" class="text-xs" translate translate-default="Forgotten password">{{ 'app.public.common.password_forgotten' }}</a>
|
2020-06-15 11:57:13 +02:00
|
|
|
<span ng-if="confirmationRequired">
|
2022-01-11 11:03:27 +01:00
|
|
|
<br><a ng-click="openConfirmationNewModal($event)" class="text-xs" translate translate-default="Confirm account">{{ 'app.public.common.confirm_my_account' }}</a>
|
2019-12-18 16:02:47 +01:00
|
|
|
</span>
|
2017-08-31 17:11:46 +02:00
|
|
|
<div class="alert alert-warning m-t-sm m-b-none text-xs p-sm" ng-show='isCapsLockOn' role="alert">
|
|
|
|
<i class="fa fa-warning"></i>
|
2019-12-18 13:04:38 +01:00
|
|
|
{{ 'app.public.common.caps_lock_is_on' | translate }}
|
2017-08-31 17:11:46 +02:00
|
|
|
</div>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer no-padder">
|
2020-12-30 15:37:15 +01:00
|
|
|
<button class="btn btn-valid btn-warning btn-block p-l btn-lg text-u-c r-b" ng-click="login()" ng-disabled="loginForm.$invalid" translate translate-default="OK">{{ 'app.shared.buttons.confirm' }}</button>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-30 14:19:32 +02:00
|
|
|
<p class="text-center font-sbold" ng-show="publicRegistrations">
|
2020-12-30 15:37:15 +01:00
|
|
|
<span translate translate-default="Not registered?">{{ 'app.public.common.not_registered_to_the_fablab' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<br/>
|
2022-01-11 11:03:27 +01:00
|
|
|
<a ng-click="openSignup($event)" class="text-u-l" translate translate-default="Create an account">{{ 'app.public.common.create_an_account' }}</a></br>
|
2015-05-05 03:10:25 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|