UNPKG

@unclepaul/allcountjs

Version:

The open source framework for rapid business application development with Node.js

27 lines (26 loc) 1.86 kB
extends main block content .container(ng-app="allcount", ng-controller="LoginController").form-signin form(role='form', action='/login' + (redirect_url ? "?redirect_url=" + redirect_url : ""), method='post') h2.form-signin-heading= messages('Please sign in') .form-signin-container input.form-control(type='text', placeholder=messages("Login"), required='', autofocus='', name='username', ng-model="user.username") input.form-control(type='password', placeholder=messages("Password"), required='', name='password', ng-model="user.password") input.form-control(ng-cloak, type='password', placeholder=messages("Repeat Password"), required='', name='password_repeat', ng-model="user.passwordRepeat", ng-if="isSignUp", ng-class="{'has-error': !passwordMatches()}") if securityConfigService.allowSignUp .checkbox label input(type='checkbox', ng-model="isSignUp") = messages('Sign Up') button.btn.btn-lg.btn-primary.btn-block(type='submit', ng-if="!isSignUp")= messages('Sign in') p.text-danger(ng-if="validationErrors", lc-message="{{validationErrors.username}}") button.btn.btn-lg.btn-success.btn-block(ng-cloak, ng-if="isSignUp", ng-click="$event.stopPropagation(); signUp()", ng-disabled="!passwordMatches()")= messages('Sign Up') if loginMethods.length > 0 .login-or= messages('Or') each method in loginMethods a.btn.btn-lg.btn-primary.btn-block(href=method.url)= messages(method.label) h4(ng-show='#{locals.forgotPasswordConfigIsDefined}', ng-cloak) a(href='/entity/forgotPassword') p Forgot password? block js script(src="/assets/js/login.js")