signin.tmpl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <label class="chk-label">
  21. <input class="ipt-chk" id="remember" name="remember" type="checkbox"/>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{{.i18n.Tr "auth.remember_me"}}</strong>
  22. </label>
  23. </div>
  24. {{end}}
  25. <div class="field">
  26. <span class="form-label"></span>
  27. <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "sign_in"}}</button>&nbsp;&nbsp;&nbsp;&nbsp;
  28. {{if not .IsSocialLogin}}<a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>{{end}}
  29. </div>
  30. {{if .ShowRegistrationButton}}
  31. <div class="field">
  32. <label></label>
  33. <a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
  34. </div>
  35. {{end}}
  36. {{if and (not .IsSocialLogin) .OauthEnabled}}
  37. <hr/>
  38. <div id="sign-social" class="text-center social-buttons">
  39. {{template "ng/base/social" .}}
  40. </div>
  41. {{end}}
  42. </div>
  43. </form>
  44. </div>
  45. {{template "ng/base/footer" .}}