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.

84 lines
2.8 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Add Phone Call Integration - {{ site_name }}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Phone Call</h1>
  8. <p>
  9. Get a phone call when a check goes down. When you pick up the call,
  10. a text-to-speech engine will read out a message and then hang up.
  11. </p>
  12. {% if show_pricing and profile.call_limit == 0 %}
  13. <p class="alert alert-info">
  14. <strong>Paid plan required.</strong>
  15. Phone call notifications are not available on the free plan–they
  16. cost too much! Please upgrade to a
  17. <a href="{% url 'hc-billing' %}">paid plan</a>
  18. to enable phone call notifications.
  19. </p>
  20. {% endif %}
  21. <h2>Integration Settings</h2>
  22. <form method="post" class="form-horizontal">
  23. {% csrf_token %}
  24. <div class="form-group {{ form.label.css_classes }}">
  25. <label for="id_label" class="col-sm-2 control-label">Label</label>
  26. <div class="col-sm-6">
  27. <input
  28. id="id_label"
  29. type="text"
  30. class="form-control"
  31. name="label"
  32. placeholder="Alice's Phone"
  33. value="{{ form.label.value|default:"" }}">
  34. {% if form.label.errors %}
  35. <div class="help-block">
  36. {{ form.label.errors|join:"" }}
  37. </div>
  38. {% else %}
  39. <span class="help-block">
  40. Optional. If you add multiple phone numbers,
  41. the labels will help you tell them apart.
  42. </span>
  43. {% endif %}
  44. </div>
  45. </div>
  46. <div class="form-group {{ form.phone.css_classes }}">
  47. <label for="id_number" class="col-sm-2 control-label">Phone Number</label>
  48. <div class="col-sm-3">
  49. <input
  50. id="id_number"
  51. type="tel"
  52. class="form-control"
  53. name="phone"
  54. placeholder="+1234567890"
  55. value="{{ form.phone.value|default:"" }}">
  56. {% if form.phone.errors %}
  57. <div class="help-block">
  58. {{ form.phone.errors|join:"" }}
  59. </div>
  60. {% else %}
  61. <span class="help-block">
  62. Make sure the phone number starts with "+" and has the
  63. country code.
  64. </span>
  65. {% endif %}
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <div class="col-sm-offset-2 col-sm-10">
  70. <button type="submit" class="btn btn-primary">Save Integration</button>
  71. </div>
  72. </div>
  73. </form>
  74. </div>
  75. </div>
  76. {% endblock %}