1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-13 23:48:55 +01:00
fab-manager/app/assets/templates/shared/passwordNewModal.html.erb

35 lines
1.6 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
<div>
<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>{{ 'password_forgotten' }}</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="passwordNewForm" class="form-horizontal" ng-keydown="passwordNewForm.$valid && $event.which == 13 && sendReset()">
<div class="form-group" ng-class="{'has-error': emailError}">
<div class="col-sm-12">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
2016-03-23 18:39:41 +01:00
<input type="email"
name="email"
class="form-control"
ng-model="user.email"
required="required"
ng-blur="emailError = !!passwordNewForm.email.$error.email"
ng-focus="emailError = false"
placeholder="{{ 'your_email_address' | translate }}" />
2015-05-05 03:10:25 +02:00
</div>
</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="sendReset()" ng-disabled="passwordNewForm.$invalid" translate>{{ 'confirm' }}</button>
2015-05-05 03:10:25 +02:00
</div>
</div>
</div>
</div>