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.

59 lines
3.4 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="setting-wrapper" class="main-wrapper">
  4. <div id="user-profile-setting" class="container clear">
  5. {{template "user/settings/nav" .}}
  6. <div class="grid-4-5 left">
  7. <div class="setting-content">
  8. {{template "ng/base/alert" .}}
  9. <div id="user-email-setting-content">
  10. <div id="user-email-panel" class="panel panel-radius">
  11. <div class="panel-header">
  12. <strong>{{.i18n.Tr "settings.manage_emails"}}</strong>
  13. </div>
  14. <ul class="panel-body setting-list">
  15. <li>{{.i18n.Tr "settings.email_desc"}}</li>
  16. {{range .Emails}}
  17. <li class="email clear">
  18. <div class="email-content left">
  19. <p><strong>{{.Email}}</strong> {{if .IsPrimary}} <span class="text-red">{{$.i18n.Tr "settings.primary"}}</span> {{end}}</p>
  20. </div>
  21. {{if not .IsPrimary}}
  22. {{if .IsActivated}}
  23. <form action="{{AppSubUrl}}/user/settings/email" method="post">
  24. {{$.CsrfTokenHtml}}
  25. <input name="_method" type="hidden" value="PRIMARY">
  26. <input name="id" type="hidden" value="{{.Id}}">
  27. <button class="right email-btn btn btn-small btn-green btn-radius">{{$.i18n.Tr "settings.primary_email"}}</button>
  28. </form>
  29. {{end}}
  30. <form action="{{AppSubUrl}}/user/settings/email" method="post">
  31. {{$.CsrfTokenHtml}}
  32. <input name="_method" type="hidden" value="DELETE">
  33. <input name="id" type="hidden" value="{{.Id}}">
  34. <button class="right email-btn btn btn-small btn-red btn-radius" style="margin-right: 5px">{{$.i18n.Tr "settings.delete_email"}}</button>
  35. </form>
  36. {{end}}
  37. </li>
  38. {{end}}
  39. </ul>
  40. <div class="panel-header">
  41. <strong>{{.i18n.Tr "settings.add_new_email"}}</strong>
  42. </div>
  43. <form class="form form-align panel-body" id="add-email-form" action="{{AppSubUrl}}/user/settings/email" method="post">
  44. {{.CsrfTokenHtml}}
  45. <p class="field">
  46. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  47. <input class="ipt ipt-large ipt-radius" id="email" name="email" type="text" required />
  48. </p>
  49. <p class="field">
  50. <label></label>
  51. <button class="btn btn-green btn-large btn-radius" id="email-add-btn">{{.i18n.Tr "settings.add_email"}}</button>
  52. </p>
  53. </form>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {{template "ng/base/footer" .}}