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.

54 lines
2.2 KiB

10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="admin-container" class="col-md-9">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. New Account
  9. </div>
  10. <div class="panel-body">
  11. <br/>
  12. <form action="/admin/users/new" method="post" class="form-horizontal">
  13. {{.CsrfTokenHtml}}
  14. {{template "base/alert" .}}
  15. <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
  16. <label class="col-md-3 control-label">Username: </label>
  17. <div class="col-md-7">
  18. <input name="username" class="form-control" placeholder="Type account's username" value="{{.username}}" required="required">
  19. </div>
  20. </div>
  21. <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
  22. <label class="col-md-3 control-label">Email: </label>
  23. <div class="col-md-7">
  24. <input name="email" class="form-control" placeholder="Type account's e-mail address" value="{{.email}}" required="required" title="Email is not valid">
  25. </div>
  26. </div>
  27. <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
  28. <label class="col-md-3 control-label">Password: </label>
  29. <div class="col-md-7">
  30. <input name="passwd" type="password" class="form-control" placeholder="Type account's password" required="required" title="Password must contain at least 6 characters">
  31. </div>
  32. </div>
  33. <div class="form-group {{if .Err_RetypePasswd}}has-error has-feedback{{end}}">
  34. <label class="col-md-3 control-label">Re-type: </label>
  35. <div class="col-md-7">
  36. <input name="retypepasswd" type="password" class="form-control" placeholder="Re-type account's password" required="required" title="Re-type Password must be same to Password">
  37. </div>
  38. </div>
  39. <hr/>
  40. <div class="form-group">
  41. <div class="col-md-offset-3 col-md-7">
  42. <button type="submit" class="btn btn-lg btn-primary">Create new account</button>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. {{template "base/footer" .}}