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.

100 lines
3.6 KiB

  1. {% extends "base.html" %}
  2. {% load hc_extras %}
  3. {% block title %}Account Settings - {{ site_name }}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1 class="settings-title">
  8. Settings
  9. <small>{{ request.user.email }}</small>
  10. </h1>
  11. </div>
  12. </div>
  13. <div class="row">
  14. <div class="col-sm-3">
  15. <ul class="nav nav-pills nav-stacked">
  16. <li><a href="{% url 'hc-profile' %}">Account</a></li>
  17. {% if show_pricing %}
  18. <li><a href="{% url 'hc-billing' %}">Billing</a></li>
  19. {% endif %}
  20. <li class="active"><a href="{% url 'hc-notifications' %}">Email Reports</a></li>
  21. </ul>
  22. </div>
  23. <div class="col-sm-9 col-md-6">
  24. <div class="panel panel-{{ status }}">
  25. <div class="panel-body settings-block">
  26. <form method="post">
  27. {% csrf_token %}
  28. <h2>Email Reports</h2>
  29. <p>Send me monthly emails about:</p>
  30. <label class="checkbox-container">
  31. <input
  32. name="reports_allowed"
  33. type="checkbox"
  34. {% if profile.reports_allowed %} checked {% endif %}>
  35. <span class="checkmark"></span>
  36. The status of checks in all teams I belong to
  37. </label>
  38. <br>
  39. <p>If any checks are down:</p>
  40. <label class="radio-container">
  41. <input
  42. type="radio"
  43. name="nag_period"
  44. value="0"
  45. {% if profile.nag_period.total_seconds == 0 %} checked {% endif %}>
  46. <span class="radiomark"></span>
  47. Do not remind me
  48. </label>
  49. <label class="radio-container">
  50. <input
  51. type="radio"
  52. name="nag_period"
  53. value="86400"
  54. {% if profile.nag_period.total_seconds == 86400 %} checked {% endif %}>
  55. <span class="radiomark"></span>
  56. Remind me daily
  57. </label>
  58. <label class="radio-container">
  59. <input
  60. type="radio"
  61. name="nag_period"
  62. value="3600"
  63. {% if profile.nag_period.total_seconds == 3600 %} checked {% endif %}>
  64. <span class="radiomark"></span>
  65. Remind me hourly
  66. </label>
  67. <br />
  68. <p class="text-muted">
  69. Reports will be delivered to {{ profile.user.email }}. <br />
  70. {% if profile.next_report_date %}
  71. Next monthly report date is
  72. {{ profile.next_report_date.date }}.
  73. {% endif %}
  74. </p>
  75. <br />
  76. <button
  77. name="update_reports_allowed"
  78. type="submit"
  79. class="btn btn-default pull-right">Save Changes</button>
  80. </form>
  81. </div>
  82. {% if status == "info" %}
  83. <div class="panel-footer">
  84. Your settings have been updated!
  85. </div>
  86. {% endif %}
  87. </div>
  88. </div>
  89. </div>
  90. {% endblock %}