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.

126 lines
4.5 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Add Microsoft Teams - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Microsoft Teams</h1>
  8. <p>If your team uses <a href="https://products.office.com/en-us/microsoft-teams/group-chat-software">Microsoft Teams</a>,
  9. you can set up {% site_name %} to post status updates directly to an appropriate
  10. Microsoft Teams channel.</p>
  11. <h2>Setup Guide</h2>
  12. <div class="row ai-step">
  13. <div class="col-sm-6">
  14. <span class="step-no">1</span>
  15. <p>
  16. Log into your Microsoft Teams account, click the <strong>Apps</strong> tab.
  17. </p>
  18. <p>
  19. Search for the <strong>Incoming Webhook</strong> connector, and add it.
  20. </p>
  21. </div>
  22. <div class="col-sm-6">
  23. <div class="marker-wrap">
  24. <span style="left: 6%; top: 83%;" class="marker"></span>
  25. <img
  26. class="ai-guide-screenshot"
  27. alt="Add the Incoming Webhook connector"
  28. src="{% static 'img/integrations/setup_msteams_1.png' %}" />
  29. </div>
  30. </div>
  31. </div>
  32. <div class="row ai-step">
  33. <div class="col-sm-6">
  34. <span class="step-no">2</span>
  35. <p>
  36. Select the channel where you want {% site_name %} to post
  37. notifications.
  38. </p>
  39. </div>
  40. <div class="col-sm-6">
  41. <img
  42. class="ai-guide-screenshot"
  43. alt="Select the channel"
  44. src="{% static 'img/integrations/setup_msteams_2.png' %}">
  45. </div>
  46. </div>
  47. <div class="row ai-step">
  48. <div class="col-sm-6">
  49. <span class="step-no">3</span>
  50. <p>
  51. Give the connector a descriptive name.
  52. </p>
  53. <p>
  54. Optionally, upload an icon
  55. (feel free to use <a href="{% static 'img/[email protected]' %}">this one</a>).
  56. </p>
  57. <p>
  58. Click on <strong>Create</strong>.
  59. </p>
  60. </div>
  61. <div class="col-sm-6">
  62. <img
  63. class="ai-guide-screenshot"
  64. alt="Create the connector"
  65. src="{% static 'img/integrations/setup_msteams_3.png' %}">
  66. </div>
  67. </div>
  68. <div class="row ai-step">
  69. <div class="col-sm-6">
  70. <span class="step-no">4</span>
  71. <p>
  72. Copy the displayed webhook URL and paste it
  73. in the form below. Save the integration, and you are done!
  74. </p>
  75. </div>
  76. <div class="col-sm-6">
  77. <div class="marker-wrap">
  78. <span style="left: 42%; top: 72%;" class="marker"></span>
  79. <img
  80. class="ai-guide-screenshot"
  81. alt="Copy the Webhook URL"
  82. src="{% static 'img/integrations/setup_msteams_4.png' %}">
  83. </div>
  84. </div>
  85. </div>
  86. <h2>Integration Settings</h2>
  87. <form method="post" class="form-horizontal">
  88. {% csrf_token %}
  89. <div class="form-group {{ form.value.css_classes }}">
  90. <label for="post-url" class="col-sm-2 control-label">Webhook URL</label>
  91. <div class="col-sm-10">
  92. <input
  93. id="post-url"
  94. type="text"
  95. class="form-control"
  96. name="value"
  97. placeholder="https://"
  98. value="{{ form.value.value|default:"" }}">
  99. {% if form.value.errors %}
  100. <div class="help-block">
  101. {{ form.value.errors|join:"" }}
  102. </div>
  103. {% endif %}
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <div class="col-sm-offset-2 col-sm-10">
  108. <button type="submit" class="btn btn-primary">Save Integration</button>
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. </div>
  114. {% endblock %}