1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/assets/templates/profile/_token.html.erb
2016-12-14 17:14:53 +01:00

30 lines
1.7 KiB
Plaintext

<section class="panel panel-default bg-token m-lg">
<div class="panel-body m-r">
<h3 translate>{{ 'do_you_already_have_an_account' }}</h3>
<p ng-hide="hasDuplicate()" translate>{{ 'do_not_fill_the_form_beside_but_specify_here_the_code_you_ve_received_by_email_to_recover_your_access' }}</p>
<p ng-show="hasDuplicate()" translate>{{ 'just_specify_code_here_to_recover_access' }}</p>
<p class="pull-right"><a href="#" ng-click="resendCode($event)" translate>{{ 'i_did_not_receive_the_code' }}</a></p>
<div class="row">
<div class="col-lg-3 col-lg-offset-1 hidden-md col-sm-3 col-sm-offset-1"></div>
<div class="col-lg-offset-1 col-lg-6 col-md-12 col-sm-offset-1 col-sm-6">
<div class="form-group" ng-class="{'has-error': userForm['user[auth_token]'].$dirty && userForm['user[auth_token]'].$invalid}">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-key"></i></span>
<input type="text"
ng-model="user.auth_token"
class="form-control"
name="user[auth_token]"
placeholder="{{ 'authentification_code' | translate }}"/>
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer no-padder">
<input type="button"
value="{{ 'confirm_my_code' | translate }}"
class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c"
ng-hide="!user.auth_token"
ng-click="registerAuthToken()"/>
</div>
</section>