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.

93 lines
3.3 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, select the team you wish to add this integration to. Click the <strong>Integrations</strong> tab. Then click the <strong>+ Integration</strong> button.
  17. </p>
  18. </div>
  19. <div class="col-sm-6">
  20. <img
  21. class="ai-guide-screenshot"
  22. alt="Click create integration button"
  23. src="{% static 'img/integrations/setup_pagertree_1.png' %}">
  24. </div>
  25. </div>
  26. <div class="row ai-step">
  27. <div class="col-sm-6">
  28. <span class="step-no">2</span>
  29. <p>
  30. 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.
  31. </p>
  32. </div>
  33. <div class="col-sm-6">
  34. <img
  35. class="ai-guide-screenshot"
  36. alt="Create Healthchecks.io integration with details"
  37. src="{% static 'img/integrations/setup_pagertree_2.png' %}">
  38. </div>
  39. </div>
  40. <div class="row ai-step">
  41. <div class="col-sm-6">
  42. <span class="step-no">3</span>
  43. <p>
  44. Copy the <strong>Webhook URL</strong> and paste it below. Save the integration, and you are done!
  45. </p>
  46. </div>
  47. <div class="col-sm-6">
  48. <img
  49. class="ai-guide-screenshot"
  50. alt="Copy the Webhook URL"
  51. src="{% static 'img/integrations/setup_pagertree_3.png' %}">
  52. </div>
  53. </div>
  54. <h2>Integration Settings</h2>
  55. <form method="post" class="form-horizontal" action="{% url 'hc-add-pagertree' %}">
  56. {% csrf_token %}
  57. <div class="form-group {{ form.value.css_classes }}">
  58. <label for="post-url" class="col-sm-2 control-label">URL</label>
  59. <div class="col-sm-10">
  60. <input
  61. id="post-url"
  62. type="text"
  63. class="form-control"
  64. name="value"
  65. placeholder="https://"
  66. value="{{ form.value.value|default:"" }}">
  67. {% if form.value.errors %}
  68. <div class="help-block">
  69. {{ form.value.errors|join:"" }}
  70. </div>
  71. {% endif %}
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <div class="col-sm-offset-2 col-sm-10">
  76. <button type="submit" class="btn btn-primary">Save Integration</button>
  77. </div>
  78. </div>
  79. </form>
  80. </div>
  81. </div>
  82. {% endblock %}