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.

94 lines
3.0 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add PagerDuty - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>PagerDuty</h1>
  8. <p><a href="https://www.pagerduty.com/">PagerDuty</a> is
  9. a well-known incident management system. It provides
  10. alerting, on-call scheduling, escalation policies and incident tracking.
  11. If you use or plan on using PagerDuty, you can can integrate it
  12. with your {% site_name %} account in few simple steps.</p>
  13. <h2>Setup Guide</h2>
  14. <div class="row ai-step">
  15. <div class="col-sm-6">
  16. <span class="step-no">1</span>
  17. <p>
  18. Log into your PagerDuty account,
  19. go to <strong>Configuration &gt; Services</strong>,
  20. and click on <strong>Add New Service</strong>.
  21. </p>
  22. <p>
  23. Give it a descriptive name, and
  24. for Integration Type select
  25. <strong>Use our API directly</strong>.
  26. </p>
  27. </div>
  28. <div class="col-sm-6">
  29. <img
  30. class="ai-guide-screenshot"
  31. alt="Screenshot"
  32. src="{% static 'img/integrations/setup_pd_1.png' %}">
  33. </div>
  34. </div>
  35. <div class="row ai-step">
  36. <div class="col-sm-6">
  37. <span class="step-no">2</span>
  38. After adding the new service, take note of its
  39. <strong>Integration Key</strong>, a long string
  40. of letters and digits.
  41. </div>
  42. <div class="col-sm-6">
  43. <img
  44. class="ai-guide-screenshot"
  45. alt="Screenshot"
  46. src="{% static 'img/integrations/setup_pd_2.png' %}">
  47. </div>
  48. </div>
  49. <div class="row ai-step">
  50. <div class="col-sm-6">
  51. <span class="step-no">3</span>
  52. <p>Paste the Integration Key down below. Save the integration, and it's done!</p>
  53. </div>
  54. </div>
  55. <h2>Integration Settings</h2>
  56. <form method="post" class="form-horizontal" action="{% url 'hc-add-pd' %}">
  57. {% csrf_token %}
  58. <div class="form-group {{ form.value.css_classes }}">
  59. <label for="api-key" class="col-sm-2 control-label">Integration Key</label>
  60. <div class="col-sm-4">
  61. <input
  62. id="api-key"
  63. type="text"
  64. class="form-control"
  65. name="value"
  66. placeholder=""
  67. value="{{ form.value.value|default:"" }}">
  68. {% if form.value.errors %}
  69. <div class="help-block">
  70. {{ form.value.errors|join:"" }}
  71. </div>
  72. {% endif %}
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <div class="col-sm-offset-2 col-sm-10">
  77. <button type="submit" class="btn btn-primary">Save Integration</button>
  78. </div>
  79. </div>
  80. </form>
  81. </div>
  82. </div>
  83. {% endblock %}