<div class="row" ng-controller="AuthCtrl"> <div class="col-lg-4 col-lg-offset-4"> <tabset justified="true"> <tab heading="Sign in"> <div ng-include="'views/auth_login_form.html'"></div> </tab> <tab heading="Sign up"> <div ng-include="'views/auth_reg_form.html'"></div> </tab> </tabset> <br> <div ng-switch="error" class="text-center text-danger"> <p ng-switch-when="wrong_credentials">Wrong credentials!</p> <p ng-switch-when="user_not_found">User with this email not registered!</p> <p ng-switch-when="user_already_registered">User with this email already registered!</p> <p ng-switch-when="invalid_email">Invalid email!</p> <p ng-switch-when="invalid_user_name">Invalid User name!</p> <p ng-switch-when="user_name_is_empty">User name is empty!</p> <p ng-switch-when="invalid_user_name_length">Are You real have so strange name!? Don't think so!</p> <p ng-switch-when="email_is_empty">Email is empty!</p> <p ng-switch-when="invalid_email_format">Invalid email format!</p> <p ng-switch-when="invalid_email_length">Are You real have so long email!?<br>How do You remember it?</p> <p ng-switch-when="invalid_password">Invalid password!</p> <p ng-switch-when="empty_password">Password is empty!</p> <p ng-switch-when="invalid_password_length">Password very short.<br>Your neighbor can hack Your account!</p> </div> </div> </div>