You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.2 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="sign-wrapper">
  4. <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="{{AppSubUrl}}/user/login" method="post">
  5. <div class="panel-header">
  6. <h2>{{if .IsSocialLogin}}{{.i18n.Tr "social_sign_in" | Str2html}}{{else}}{{.i18n.Tr "sign_in"}}{{end}}</h2>
  7. </div>
  8. <div class="panel-content">
  9. {{template "ng/base/alert" .}}
  10. <div class="field">
  11. <label class="req" for="username">{{.i18n.Tr "home.uname_holder"}}</label>
  12. <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.uname}}" required/>
  13. </div>
  14. <div class="field">
  15. <label class="req" for="password">{{.i18n.Tr "password"}}</label>
  16. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" required/>
  17. </div>
  18. {{if not .IsSocialLogin}}
  19. <div class="field">
  20. <span class="form-label"></span>
  21. <input class="ipt-chk" id="remember" name="remember" type="checkbox"/>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{{.i18n.Tr "auth.remember_me"}}</strong>
  22. </div>
  23. {{end}}
  24. <div class="field">
  25. <span class="form-label"></span>
  26. <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "sign_in"}}</button>&nbsp;&nbsp;&nbsp;&nbsp;
  27. {{if not .IsSocialLogin}}<a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>{{end}}
  28. </div>
  29. {{if .ShowRegistrationButton}}
  30. <div class="field">
  31. <label></label>
  32. <a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
  33. </div>
  34. {{end}}
  35. {{if and (not .IsSocialLogin) .OauthEnabled}}
  36. <hr/>
  37. <div id="sign-social" class="text-center social-buttons">
  38. {{template "ng/base/social" .}}
  39. </div>
  40. {{end}}
  41. </div>
  42. </form>
  43. </div>
  44. {{template "ng/base/footer" .}}