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.

105 lines
4.3 KiB

7 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize static hc_extras %}
  3. {% block title %}Pushover Integration for {{ site_name }}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Pushover</h1>
  8. <div class="jumbotron">
  9. <p>
  10. <a href="https://www.pushover.net/">Pushover</a> delivers
  11. real-time notifications on your Android, iPhone, iPad, Desktop,
  12. Android Wear and Apple Watch. You can set up {{ site_name }} to
  13. receive Pushover notifications in a few simple steps.
  14. </p>
  15. </div>
  16. <h2>Integration Settings</h2>
  17. <form id="add-pushover" method="post" class="form-horizontal">
  18. {% csrf_token %}
  19. <div class="form-group">
  20. <label class="col-sm-3 control-label">Priority for "down" events</label>
  21. <div class="col-sm-8">
  22. <select name="po_priority" class="selectpicker form-control">
  23. <option
  24. value="-2"
  25. data-content="Lowest Priority. <span class='help'>Generates no notification on your device.</span>">
  26. Lowest Priority
  27. </option>
  28. <option
  29. value="-1"
  30. data-content="Low Priority. <span class='help'>Sends a quiet notification.</span>">
  31. Low Priority
  32. </option>
  33. <option value="0" selected="selected">
  34. Normal Priority
  35. </option>
  36. <option
  37. value="1"
  38. data-content="High Priority. <span class='help'>Bypasses user's quiet hours.</span>">
  39. High Priority
  40. </option>
  41. <option
  42. value="2"
  43. data-content="Emergency Priority. <span class='help'>Repeated every {{po_retry_delay|hc_duration }} for at most {{ po_expiration|hc_duration }} until you acknowledge them.</span>">
  44. Emergency Priority
  45. </option>
  46. </select>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="col-sm-3 control-label">Priority for "up" events</label>
  51. <div class="col-sm-8">
  52. <select name="po_priority_up" class="selectpicker form-control">
  53. <option
  54. value="-2"
  55. data-content="Lowest Priority. <span class='help'>Generates no notification on your device.</span>">
  56. Lowest Priority
  57. </option>
  58. <option
  59. value="-1"
  60. data-content="Low Priority. <span class='help'>Sends a quiet notification.</span>">
  61. Low Priority
  62. </option>
  63. <option value="0" selected="selected">
  64. Normal Priority
  65. </option>
  66. <option
  67. value="1"
  68. data-content="High Priority. <span class='help'>Bypasses user's quiet hours.</span>">
  69. High Priority
  70. </option>
  71. <option
  72. value="2"
  73. data-content="Emergency Priority. <span class='help'>Repeated every {{po_retry_delay|hc_duration }} for at most {{ po_expiration|hc_duration }} until you acknowledge them.</span>">
  74. Emergency Priority
  75. </option>
  76. </select>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <div class="col-sm-offset-3 col-sm-8">
  81. <button type="submit" class="btn btn-default">
  82. <img class="ai-icon" src="{% static 'img/integrations/po.png' %}" alt="Pushover" />
  83. Subscribe with Pushover
  84. </button>
  85. </div>
  86. </div>
  87. </form>
  88. </div>
  89. </div>
  90. {% endblock %}
  91. {% block scripts %}
  92. {% compress js %}
  93. <script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
  94. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  95. <script src="{% static 'js/bootstrap-select.min.js' %}"></script>
  96. {% endcompress %}
  97. {% endblock %}