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.

64 lines
1.8 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Notification Channels - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Email</h1>
  8. <p>Get an email message when check goes up or down.</p>
  9. <p>
  10. <strong>Tip:</strong>
  11. Add multiple email addresses, to notify multiple team members.
  12. </p>
  13. <p>
  14. <strong>Confirmation needed.</strong>
  15. After entering an email address, {% site_name %} will send out a confirmation link.
  16. Only confirmed addresses will receive notifications.
  17. </p>
  18. <h2>Integration Settings</h2>
  19. <form method="post" class="form-horizontal" action="{% url 'hc-add-email' %}">
  20. {% csrf_token %}
  21. <div class="form-group {{ form.value.css_classes }}">
  22. <label for="id_email" class="col-sm-2 control-label">Email</label>
  23. <div class="col-sm-3">
  24. <input
  25. id="id_email"
  26. type="email"
  27. class="form-control"
  28. name="value"
  29. placeholder="[email protected]"
  30. value="{{ form.value.value|default:"" }}">
  31. {% if form.value.errors %}
  32. <div class="help-block">
  33. {{ form.value.errors|join:"" }}
  34. </div>
  35. {% endif %}
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <div class="col-sm-offset-2 col-sm-10">
  40. <button type="submit" class="btn btn-primary">Save Integration</button>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. {% endblock %}
  47. {% block scripts %}
  48. {% compress js %}
  49. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  50. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  51. {% endcompress %}
  52. {% endblock %}