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.
 
 
 
 
 

54 lines
1.5 KiB

{% load compress humanize staticfiles hc_extras %}
<form method="post">
{% csrf_token %}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</span></button>
<h4 class="update-timeout-title">Assign Checks to Channel {% if channel.kind == "po" %}{{ channel.po_value|join:" / " }}{% else %}{{ channel.value }}{% endif %}</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" colspan="2">
Select / Unselect All
</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>