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.

46 lines
1.6 KiB

  1. {{template "base/head" .}}
  2. <div class="user signin">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/auth/finalize_openid_navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "auth.login_userpass"}}
  10. </h4>
  11. <div class="ui attached segment">
  12. <form class="ui form" action="{{.Link}}" method="post">
  13. {{.CsrfTokenHtml}}
  14. <div class="required inline field {{if .Err_UserName}}error{{end}}">
  15. <label for="user_name">{{.i18n.Tr "home.uname_holder"}}</label>
  16. <input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
  17. </div>
  18. <div class="required inline field {{if .Err_Password}}error{{end}}">
  19. <label for="password">{{.i18n.Tr "password"}}</label>
  20. <input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
  21. </div>
  22. <div class="inline field">
  23. <label></label>
  24. <div class="ui checkbox">
  25. <label>{{.i18n.Tr "auth.remember_me"}}</label>
  26. <input name="remember" type="checkbox">
  27. </div>
  28. </div>
  29. <div class="inline field">
  30. <label></label>
  31. <button class="ui green button">{{.i18n.Tr "sign_in"}}</button>
  32. <a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>
  33. </div>
  34. {{if .ShowRegistrationButton}}
  35. <div class="inline field">
  36. <label></label>
  37. <a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
  38. </div>
  39. {{end}}
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}