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.

52 lines
1.7 KiB

  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>SMS</h1>
  8. <p>Get a SMS message to your specified number when check goes down.</p>
  9. {% if show_pricing and profile.sms_limit == 0 %}
  10. <p class="alert alert-success">
  11. <strong>Paid plan required.</strong>
  12. SMS messaging is not available on the free plan–sending the messages
  13. costs too much! Please upgrade to a
  14. <a href="{% url 'hc-pricing' %}">paid plan</a> to enable SMS messaging.
  15. </p>
  16. {% endif %}
  17. <h2>Integration Settings</h2>
  18. <form method="post" class="form-horizontal" action="{% url 'hc-add-sms' %}">
  19. {% csrf_token %}
  20. <div class="form-group {{ form.value.css_classes }}">
  21. <label for="id_number" class="col-sm-2 control-label">Phone Number</label>
  22. <div class="col-sm-3">
  23. <input
  24. id="id_number"
  25. type="tel"
  26. class="form-control"
  27. name="value"
  28. placeholder="+1234567890"
  29. value="{{ form.value.value|default:"" }}">
  30. {% if form.value.errors %}
  31. <div class="help-block">
  32. {{ form.value.errors|join:"" }}
  33. </div>
  34. {% endif %}
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <div class="col-sm-offset-2 col-sm-10">
  39. <button type="submit" class="btn btn-primary">Save Integration</button>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. {% endblock %}