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.

57 lines
3.8 KiB

10 years ago
10 years ago
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="admin-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.users.new_account"}}</strong>
  14. </div>
  15. <form class="form form-align panel-body" id="repo-setting-form" action="{{AppSubUrl}}/admin/users/new" method="post">
  16. {{.CsrfTokenHtml}}
  17. <div class="field">
  18. <label class="req">{{.i18n.Tr "admin.users.auth_source"}}</label>
  19. <select id="login-type" name="logintype">
  20. <option value="0-0">{{.i18n.Tr "admin.users.local"}}</option>
  21. {{range $key, $val := .LoginSources}}
  22. <option value="{{$val.Type}}-{{$val.Id}}">{{$val.Name}}</option>
  23. {{end}}
  24. </select>
  25. </div>
  26. <div class="field auth-name hidden">
  27. <label class="req" for="loginname">{{.i18n.Tr "admin.users.auth_login_name"}}</label>
  28. <input class="ipt ipt-large ipt-radius {{if .Err_LoginName}}ipt-error{{end}}" id="loginname" name="loginname" value="{{.loginname}}" />
  29. </div>
  30. <div class="field">
  31. <label class="req" for="username">{{.i18n.Tr "username"}}</label>
  32. <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.uname}}" required />
  33. </div>
  34. <div class="field">
  35. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  36. <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}" required/>
  37. </div>
  38. <div class="field pwd">
  39. <label class="req" for="password">{{.i18n.Tr "password"}}</label>
  40. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
  41. </div>
  42. <div class="field">
  43. <label class="req" for="re-type">{{.i18n.Tr "re_type"}}</label>
  44. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="re-type" name="retype" type="password" required/>
  45. </div>
  46. <div class="field">
  47. <label></label>
  48. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "admin.users.new_account"}}</button>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. {{template "ng/base/footer" .}}