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.

58 lines
1.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. {% if messages %}
  10. <div class="col-sm-12">
  11. {% for message in messages %}
  12. <p class="alert alert-{{ message.tags }}">{{ message }}</p>
  13. {% endfor %}
  14. </div>
  15. {% endif %}
  16. </div>
  17. <div class="row">
  18. <div class="col-sm-3">
  19. <ul class="nav nav-pills nav-stacked">
  20. <li><a href="{% url 'hc-profile' %}">Account</a></li>
  21. <li class="active"><a href="{% url 'hc-notifications' %}">Notifications</a></li>
  22. <li><a href="{% url 'hc-badges' %}">Badges</a></li>
  23. </ul>
  24. </div>
  25. <div class="col-sm-9 col-md-6">
  26. <div class="panel panel-default">
  27. <div class="panel-body settings-block">
  28. <h2>Monthly Reports</h2>
  29. <form method="post">
  30. {% csrf_token %}
  31. <label>
  32. <input
  33. name="reports_allowed"
  34. type="checkbox"
  35. {% if profile.reports_allowed %} checked {% endif %}>
  36. Each month send me a summary of my checks
  37. </label>
  38. <button
  39. name="update_reports_allowed"
  40. type="submit"
  41. class="btn btn-default pull-right">Save</button>
  42. </form>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {% endblock %}
  48. {% block scripts %}
  49. {% compress js %}
  50. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  51. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  52. {% endcompress %}
  53. {% endblock %}