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.

105 lines
3.8 KiB

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