mirror of https://github.com/Aidaho12/haproxy-wi
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.
33 lines
1.2 KiB
33 lines
1.2 KiB
4 years ago
|
{% for slack in slacks %}
|
||
|
<tr style="width: 50%;" id="slack-table-{{slack.0}}" class="newgroup">
|
||
|
<td class="padding10 first-collumn">
|
||
|
<input type="text" id="slack-token-{{slack.0}}" class="form-control" value="{{slack.1}}">
|
||
|
<input type="hidden" id="slackgroup-{{slack.0}}" name="slackgroup-{{slack.0}}">
|
||
|
</td>
|
||
|
<td>
|
||
|
<input type="text" id="slack-chanel-{{slack.0}}" class="form-control" value="{{slack.2}}">
|
||
|
</td>
|
||
|
{% if page != "servers.py" %}
|
||
|
<td>
|
||
|
<select id="slackgroup-{{slack.0}}" name="slackgroup-{{slack.0}}">
|
||
|
{% for group in groups %}
|
||
|
{% if slack.3 == group.0 %}
|
||
|
<option value="{{ group.0 }}" selected>{{ group.1 }}</option>
|
||
|
{% else %}
|
||
|
<option value="{{ group.0 }}">{{ group.1 }}</option>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</td>
|
||
|
{% endif %}
|
||
|
<td>
|
||
|
<button title="Send test message" onclick="checkSlack({{slack.0}})">Test</button>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a class="add" onclick="cloneSlack({{slack.0}})" id="clone-{{slack.0}}" title="Clone {{slack.2}}" style="cursor: pointer;"></a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a class="delete" onclick="confirmDeleteSlack({{slack.0}})" style="cursor: pointer;"></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|