login.tmpl 1.5 KB

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