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.

91 lines
3.3 KiB

  1. {% extends "base.html" %}
  2. {% load compress hc_extras static tz %}
  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. <li class="active"><a href="{% url 'hc-appearance' %}">Appearance</a></li>
  18. {% if show_pricing %}
  19. <li><a href="{% url 'hc-billing' %}">Billing</a></li>
  20. {% endif %}
  21. <li><a href="{% url 'hc-notifications' %}">Email Reports</a></li>
  22. </ul>
  23. </div>
  24. <div class="col-sm-9 col-md-6">
  25. <div class="panel panel-{{ status }}">
  26. <div class="panel-body settings-block">
  27. <form method="post">
  28. {% csrf_token %}
  29. <h2>Theme</h2>
  30. <div class="row">
  31. <div class="col-sm-6 theme">
  32. <label for="theme-light">
  33. <img
  34. src="{% static 'img/theme-light.png' %}"
  35. alt="Light theme preview">
  36. </label>
  37. <label class="radio-container">
  38. <input
  39. id="theme-light"
  40. type="radio"
  41. name="theme"
  42. value=""
  43. {% if profile.theme != "dark" %} checked {% endif %}>
  44. <span class="radiomark"></span>
  45. Light
  46. </label>
  47. </div>
  48. <div class="col-sm-6 theme">
  49. <label for="theme-dark">
  50. <img
  51. src="{% static 'img/theme-dark.png' %}"
  52. alt="Dark theme preview">
  53. </label>
  54. <label class="radio-container">
  55. <input
  56. id="theme-dark"
  57. type="radio"
  58. name="theme"
  59. value="dark"
  60. {% if profile.theme == "dark" %} checked {% endif %}>
  61. <span class="radiomark"></span>
  62. Dark
  63. </label>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. {% if status == "info" %}
  69. <div class="panel-footer">
  70. Your settings have been updated!
  71. </div>
  72. {% endif %}
  73. </div>
  74. </div>
  75. </div>
  76. {% endblock %}
  77. {% block scripts %}
  78. {% compress js %}
  79. <script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
  80. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  81. <script src="{% static 'js/appearance.js' %}"></script>
  82. {% endcompress %}
  83. {% endblock %}