email.tmpl 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="email-primary">{{$.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-green btn-radius btn-small">{{$.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-red btn-radius btn-small">{{$.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" .}}