healthchecks_healthchecks/templates/front/channel_checks.html

56 lines
1.4 KiB
HTML

{% load humanize hc_extras %}
<form method="post">
{% csrf_token %}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4>Assign Checks to Integration</h4>
</div>
<input type="hidden" name="channel" value="{{ channel.code }}" />
<table class="table channel-checks-table">
<tr>
<th class="check-all-cell">
<input
id="toggle-all"
type="checkbox"
class="toggle" />
</th>
<th class="check-all-cell">
Select / Unselect All
</th>
<th>UUID</th>
</tr>
{% for check in checks %}
<tr>
<td>
<input
type="checkbox"
class="toggle"
data-toggle="checkbox-x"
{% if check.code in assigned %} checked {% endif %}
name="check-{{ check.code }}">
</td>
<td>
{% if check.name %}
{{ check.name }}
{% else %}
<span class="unnamed">unnamed</span>
{% endif %}
</td>
<td>
<code>{{ check.code }}</code>
</td>
</tr>
{% endfor %}
</table>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
</form>