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
2.3 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" 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-3">
  18. <select class="form-control" id="po_priority" name="po_priority">
  19. <option value="-2">Lowest</option>
  20. <option value="-1">Low</option>
  21. <option value="0" selected>Normal</option>
  22. <option value="1">High</option>
  23. <option value="2"
  24. data-toggle="tooltip" data-placement="right"
  25. title="Emergency notifications will be repeated every
  26. {{po_retry_delay|hc_duration }} for at most
  27. {{ po_expiration|hc_duration }} until you
  28. acknowledge them.">
  29. Emergency
  30. </option>
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <div class="col-sm-offset-2 col-sm-10">
  36. <button type="submit" class="btn btn-default">
  37. <img class="ai-icon" src="{% static 'img/integrations/pushover.png' %}" alt="Pushover" />
  38. Subscribe with Pushover
  39. </button>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. {% endblock %}
  46. {% block scripts %}
  47. {% compress js %}
  48. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  49. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  50. {% endcompress %}
  51. <script>$(function() {
  52. $('[data-toggle="tooltip"]').tooltip({container: 'body'});
  53. })</script>
  54. {% endblock %}