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.

103 lines
3.7 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Add PagerTree - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>PagerTree</h1>
  8. <p>If your team uses <a href="https://pagertree.com">PagerTree</a>,
  9. you can set up {% site_name %} to create a PagerTree incident when
  10. a check goes down, and resolve it when a check goes back up.</p>
  11. <h2>Setup Guide</h2>
  12. <div class="row ai-step">
  13. <div class="col-sm-6">
  14. <span class="step-no">1</span>
  15. <p>
  16. Log into your PagerTree account, click the <strong>Integrations</strong> tab.
  17. Then click the <strong>Create Integration</strong> button.
  18. </p>
  19. </div>
  20. <div class="col-sm-6">
  21. <div class="marker-wrap">
  22. <span style="left: 89%; top: 19%;" class="marker"></span>
  23. <img
  24. class="ai-guide-screenshot"
  25. alt="Click create integration button"
  26. src="{% static 'img/integrations/setup_pagertree_1.png' %}" />
  27. </div>
  28. </div>
  29. </div>
  30. <div class="row ai-step">
  31. <div class="col-sm-6">
  32. <span class="step-no">2</span>
  33. <p>
  34. In the Create Integration Form, fill out the details with appropriate values, but most importantly make sure the <strong>Integration Type</strong> is set to <strong>Healthchecks.io</strong>. Then click the <strong>Create</strong> button.
  35. </p>
  36. </div>
  37. <div class="col-sm-6">
  38. <img
  39. class="ai-guide-screenshot"
  40. alt="Create Healthchecks.io integration with details"
  41. src="{% static 'img/integrations/setup_pagertree_2.png' %}">
  42. </div>
  43. </div>
  44. <div class="row ai-step">
  45. <div class="col-sm-6">
  46. <span class="step-no">3</span>
  47. <p>
  48. Copy the <strong>Endpoint address</strong> and paste it
  49. in the form below.
  50. Save the integration, and you are done!
  51. </p>
  52. </div>
  53. <div class="col-sm-6">
  54. <div class="marker-wrap">
  55. <span style="left: 32%; top: 59%;" class="marker"></span>
  56. <img
  57. class="ai-guide-screenshot"
  58. alt="Copy the Webhook URL"
  59. src="{% static 'img/integrations/setup_pagertree_3.png' %}">
  60. </div>
  61. </div>
  62. </div>
  63. <h2>Integration Settings</h2>
  64. <form method="post" class="form-horizontal" action="{% url 'hc-add-pagertree' %}">
  65. {% csrf_token %}
  66. <div class="form-group {{ form.value.css_classes }}">
  67. <label for="post-url" class="col-sm-2 control-label">Endpoint</label>
  68. <div class="col-sm-10">
  69. <input
  70. id="post-url"
  71. type="text"
  72. class="form-control"
  73. name="value"
  74. placeholder="https://"
  75. value="{{ form.value.value|default:"" }}">
  76. {% if form.value.errors %}
  77. <div class="help-block">
  78. {{ form.value.errors|join:"" }}
  79. </div>
  80. {% endif %}
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <div class="col-sm-offset-2 col-sm-10">
  85. <button type="submit" class="btn btn-primary">Save Integration</button>
  86. </div>
  87. </div>
  88. </form>
  89. </div>
  90. </div>
  91. {% endblock %}