|
|
@ -1,7 +1,7 @@ |
|
|
|
<div ng-include="'partials/head.html'"></div> |
|
|
|
<div ng-include="'partials/head.html'"></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="login_form_wrap"> |
|
|
|
<div class="login_form_wrap" my-vertical-position="0.4"> |
|
|
|
<div class="error" ng-if="error.message">{{ error.message }}</div> |
|
|
|
<div class="error" ng-if="error.message">{{ error.message }}</div> |
|
|
|
<form name="mySendCodeForm" ng-if="!credentials.phone_code_hash" ng-submit="sendCode()"> |
|
|
|
<form name="mySendCodeForm" ng-if="!credentials.phone_code_hash" ng-submit="sendCode()"> |
|
|
|
<h3 class="login_form_head">Sign in</h3> |
|
|
|
<h3 class="login_form_head">Sign in</h3> |
|
|
@ -9,7 +9,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': error.field == 'phone'}"> |
|
|
|
<div class="form-group" ng-class="{'has-error': error.field == 'phone'}"> |
|
|
|
<label class="control-label" for="phone_number" ng-if="error.field == 'phone'">Incorrect phone number</label> |
|
|
|
<label class="control-label" for="phone_number" ng-if="error.field == 'phone'">Incorrect phone number</label> |
|
|
|
<input type="tel" class="form-control" name="phone_number" ng-model="credentials.phone_number" placeholder="Enter your phone" required> |
|
|
|
<input type="tel" class="form-control" my-focused name="phone_number" ng-model="credentials.phone_number" placeholder="Enter your phone" required> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button class="btn btn-success btn-block" ng-class="{disabled: progress.enabled}" ng-disabled="progress.enabled" type="submit"> |
|
|
|
<button class="btn btn-success btn-block" ng-class="{disabled: progress.enabled}" ng-disabled="progress.enabled" type="submit"> |
|
|
|
{{progress.enabled ? 'Generating keys...' : 'Next'}} |
|
|
|
{{progress.enabled ? 'Generating keys...' : 'Next'}} |
|
|
@ -28,7 +28,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': error.field == 'phone_code'}"> |
|
|
|
<div class="form-group" ng-class="{'has-error': error.field == 'phone_code'}"> |
|
|
|
<label class="control-label" for="phone_code" ng-if="error.field == 'phone_code'">Incorrect SMS code</label> |
|
|
|
<label class="control-label" for="phone_code" ng-if="error.field == 'phone_code'">Incorrect SMS code</label> |
|
|
|
<input type="number" maxlength="5" class="form-control" name="phone_code" ng-model="credentials.phone_code" placeholder="Enter your code" required> |
|
|
|
<input type="number" my-focused maxlength="5" class="form-control" name="phone_code" ng-model="credentials.phone_code" placeholder="Enter your code" required> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<button class="btn btn-success btn-block" type="submit" ng-class="{disabled: progress.enabled}" ng-disabled="progress.enabled"> |
|
|
|
<button class="btn btn-success btn-block" type="submit" ng-class="{disabled: progress.enabled}" ng-disabled="progress.enabled"> |
|
|
|