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.

61 lines
1.8 KiB

  1. {% extends "base.html" %}
  2. {% load compress staticfiles %}
  3. {% block title %}Account Settings - healthchecks.io{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1 id="settings-title">Settings</h1>
  8. </div>
  9. {% if messages %}
  10. <div class="col-sm-12">
  11. {% for message in messages %}
  12. <p class="alert alert-success">{{ message }}</p>
  13. {% endfor %}
  14. </div>
  15. {% endif %}
  16. </div>
  17. <div class="row">
  18. <div class="col-sm-6">
  19. <div class="panel panel-default">
  20. <div class="panel-body settings-block">
  21. <form method="post">
  22. {% csrf_token %}
  23. <h2>Monthly Reports</h2>
  24. <label>
  25. <input
  26. name="reports_allowed"
  27. type="checkbox"
  28. {% if profile.reports_allowed %} checked {% endif %}>
  29. Each month send me a summary of my checks
  30. </label>
  31. <button
  32. type="submit"
  33. class="btn btn-default pull-right">Save</button>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="col-sm-6">
  39. <div class="panel panel-default">
  40. <div class="panel-body settings-block">
  41. <form method="post">
  42. {% csrf_token %}
  43. <h2>Set Password</h2>
  44. Attach a password to your healthchecks.io account
  45. <input type="hidden" name="set_password" value="1" />
  46. <button
  47. type="submit"
  48. class="btn btn-default pull-right">Set Password</button>
  49. </form>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. {% endblock %}