2019-04-14 15:28:19 +02:00
|
|
|
{% extends "zerver/base.html" %}
|
|
|
|
|
|
|
|
{% block customhead %}
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{{ render_bundle('integrations-dev-panel') }}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<input id="csrftoken" type="hidden" value="{{ csrf_token }}">
|
|
|
|
|
|
|
|
<div id="panel_div">
|
|
|
|
|
|
|
|
<h1 class="center-text"> Integrations Developer Panel </h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label><b>Stream</b></label>
|
|
|
|
<input id="stream_name" type="text" />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<label><b>Topic</b></label>
|
|
|
|
<input id="topic_name" type="text" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="pad-top"><b>Bot</b></td>
|
|
|
|
<td class="pad-top">
|
|
|
|
<select id="bot_name">
|
|
|
|
<option value=""></option>
|
|
|
|
{% for bot in bots %}
|
|
|
|
<option value="{{ bot.api_key }}"> {{ bot.full_name }} </option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><b>Integration</b></td>
|
|
|
|
<td>
|
|
|
|
<select id="integration_name">
|
|
|
|
<option value=""></option>
|
|
|
|
{% for integration in integrations %}
|
|
|
|
<option value="{{ integration }}"> {{ integration }} </option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><b>Fixture</b></td>
|
|
|
|
<td><select id="fixture_name"></select></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="pad-top">
|
|
|
|
<label for="URL"><b>URL</b></label>
|
|
|
|
<input id="URL" type="text" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2019-05-16 09:23:15 +02:00
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="center-text pad-top"><b>Custom HTTP Headers</b></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="form-group">
|
|
|
|
<textarea id="custom_http_headers" class="form-control"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2019-04-14 15:28:19 +02:00
|
|
|
<tr>
|
2019-05-16 20:29:18 +02:00
|
|
|
<td colspan="2" class="center-text pad-top"><b>Fixture Body</b></td>
|
2019-04-14 15:28:19 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="form-group">
|
|
|
|
<textarea id="fixture_body" class="form-control"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2019-05-16 20:29:18 +02:00
|
|
|
<td colspan="2"> <p id="message"></p> </td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button id="send_all_fixtures_button" class="btn-success">Send All</button>
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-04-14 15:28:19 +02:00
|
|
|
<button id="send_fixture_button" class="btn-success">Send!</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br> <br> <br>
|
|
|
|
|
|
|
|
{% endblock %}
|