本站源代码
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

48 líneas
1.6KB

  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. </form>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1