1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/assets/templates/shared/deviseModal.html.erb

67 lines
2.9 KiB
Plaintext
Raw Normal View History

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"/>
<h1 translate>
{{ 'connection' }}
</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"
required="required"
ng-blur="emailError = !!loginForm.email.$error.email"
ng-focus="emailError = false"
placeholder="{{ 'your_email_address' | translate }}" />
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"
required="required"
placeholder="{{ 'your_password' | translate }}"
ng-minlength="8"/>
2015-05-05 03:10:25 +02:00
</div>
2016-03-23 18:39:41 +01:00
<a href="#" ng-click="openResetPassword($event)" class="text-xs">{{ 'password_forgotten' | translate }}</a>
<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>
{{ 'caps_lock_is_on' | translate }}
</div>
2015-05-05 03:10:25 +02:00
</div>
</div>
</form>
</div>
<div class="panel-footer no-padder">
2016-03-23 18:39:41 +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>{{ 'confirm' }}</button>
2015-05-05 03:10:25 +02:00
</div>
</div>
<p class="text-center font-sbold">
2016-03-23 18:39:41 +01:00
<span translate>{{ 'not_registered_to_the_fablab' }}</span>
<br/>
<a href="#" ng-click="openSignup($event)" class="text-u-l" translate>{{ 'create_an_account' }}</a></br>
2015-05-05 03:10:25 +02:00
</p>
</div>
</div>