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.

46 lines
1.5 KiB

  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles 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>Integration Settings</h2>
  12. <form method="post" class="form-horizontal" action="{% url 'hc-add-pagertree' %}">
  13. {% csrf_token %}
  14. <div class="form-group {{ form.value.css_classes }}">
  15. <label for="post-url" class="col-sm-2 control-label">URL</label>
  16. <div class="col-sm-10">
  17. <input
  18. id="post-url"
  19. type="text"
  20. class="form-control"
  21. name="value"
  22. placeholder="https://"
  23. value="{{ form.value.value|default:"" }}">
  24. {% if form.value.errors %}
  25. <div class="help-block">
  26. {{ form.value.errors|join:"" }}
  27. </div>
  28. {% endif %}
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <div class="col-sm-offset-2 col-sm-10">
  33. <button type="submit" class="btn btn-primary">Save Integration</button>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. </div>
  39. {% endblock %}