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.

71 lines
2.3 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Add Pager Team - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Pager Team</h1>
  8. <p>You can integrate <a href="https://pagerteam.com">Pager Team</a>
  9. with {% site_name %} to alert your on-call rotation whenever a check goes down.</p>
  10. <h2>Setup Guide</h2>
  11. <div class="row ai-step">
  12. <div class="col-sm-6">
  13. <span class="step-no">1</span>
  14. <p>
  15. Log into your Pager Team account, select the rotation you wish to add this integration to. Click the <strong>Copy Webhook</strong> button.
  16. </p>
  17. </div>
  18. <div class="col-sm-6">
  19. <img
  20. class="ai-guide-screenshot"
  21. alt="Click create integration button"
  22. src="{% static 'img/integrations/setup_pagerteam_1.png' %}">
  23. </div>
  24. </div>
  25. <div class="row ai-step">
  26. <div class="col-sm-6">
  27. <span class="step-no">2</span>
  28. <p>
  29. Paste the <strong>Webhook URL</strong> below. Save the integration, and you are done!
  30. </p>
  31. </div>
  32. </div>
  33. <h2>Integration Settings</h2>
  34. <form method="post" class="form-horizontal" action="{% url 'hc-add-pagerteam' %}">
  35. {% csrf_token %}
  36. <div class="form-group {{ form.value.css_classes }}">
  37. <label for="post-url" class="col-sm-2 control-label">URL</label>
  38. <div class="col-sm-10">
  39. <input
  40. id="post-url"
  41. type="text"
  42. class="form-control"
  43. name="value"
  44. placeholder="https://"
  45. value="{{ form.value.value|default:"" }}">
  46. {% if form.value.errors %}
  47. <div class="help-block">
  48. {{ form.value.errors|join:"" }}
  49. </div>
  50. {% endif %}
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <div class="col-sm-offset-2 col-sm-10">
  55. <button type="submit" class="btn btn-primary">Save Integration</button>
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. {% endblock %}