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.

94 lines
3.4 KiB

  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add Pushover - healthchecks.io{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Pushover</h1>
  8. <p><a href="https://www.pushover.net/">Pushover</a> is a service to receive
  9. instant push notifications on your phone or tablet from a variety of
  10. sources. If you bought the app on your mobile device, you can integrate it
  11. with your healthchecks.io account in a few simple steps.</p>
  12. <h2>Integration Settings</h2>
  13. <form method="post" id="add-pushover" class="form-horizontal" action="{% url 'hc-add-pushover' %}">
  14. {% csrf_token %}
  15. <div class="form-group">
  16. <label for="po_priority" class="col-sm-2 control-label">Notification priority</label>
  17. <div class="col-sm-6">
  18. <div class="radio">
  19. <label>
  20. <input type="radio" name="po_priority" value="-2">
  21. Lowest Priority.
  22. <span class="help">
  23. Generates no notification/alert on your device.
  24. On iOS, the application badge number will be increased.
  25. </span>
  26. </label>
  27. </div>
  28. <div class="radio">
  29. <label>
  30. <input type="radio" name="po_priority" value="-1">
  31. Low Priority.
  32. <span class="help">
  33. Sends a quiet notification.
  34. </span>
  35. </label>
  36. </div>
  37. <div class="radio">
  38. <label>
  39. <input type="radio" name="po_priority" value="0" checked>
  40. Normal Priority.
  41. </label>
  42. </div>
  43. <div class="radio">
  44. <label>
  45. <input type="radio" name="po_priority" value="1">
  46. <span class="text-warning">High Priority.</span>
  47. <span class="help">
  48. Bypasses user's quiet hours.
  49. </span>
  50. </label>
  51. </div>
  52. <div class="radio">
  53. <label>
  54. <input type="radio" name="po_priority" value="-2">
  55. <span class="text-danger">Emergency Priority.</span>
  56. <span class="help">
  57. The notification is repeated every
  58. {{po_retry_delay|hc_duration }} for at most
  59. {{ po_expiration|hc_duration }} until you
  60. acknowledge them.
  61. </span>
  62. </label>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <div class="col-sm-offset-2 col-sm-10">
  68. <button type="submit" class="btn btn-default">
  69. <img class="ai-icon" src="{% static 'img/integrations/pushover.png' %}" alt="Pushover" />
  70. Subscribe with Pushover
  71. </button>
  72. </div>
  73. </div>
  74. </form>
  75. </div>
  76. </div>
  77. {% endblock %}
  78. {% block scripts %}
  79. {% compress js %}
  80. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  81. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  82. {% endcompress %}
  83. {% endblock %}