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.4 KiB

  1. {% load humanize hc_extras %}
  2. <form method="post">
  3. {% csrf_token %}
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal">&times;</button>
  6. <h4>Assign Checks to Integration</h4>
  7. </div>
  8. <input type="hidden" name="channel" value="{{ channel.code }}" />
  9. <table class="table channel-checks-table">
  10. <tr>
  11. <th class="check-all-cell">
  12. <input
  13. id="toggle-all"
  14. type="checkbox"
  15. class="toggle" />
  16. </th>
  17. <th class="check-all-cell" colspan="2">
  18. Select / Unselect All
  19. </th>
  20. </tr>
  21. {% for check in checks %}
  22. <tr>
  23. <td>
  24. <input
  25. type="checkbox"
  26. class="toggle"
  27. data-toggle="checkbox-x"
  28. {% if check.code in assigned %} checked {% endif %}
  29. name="check-{{ check.code }}">
  30. </td>
  31. <td>
  32. {% if check.name %}
  33. {{ check.name }}
  34. {% else %}
  35. <span class="unnamed">unnamed</span>
  36. {% endif %}
  37. </td>
  38. <td>
  39. <code>{{ check.code }}</code>
  40. </td>
  41. </tr>
  42. {% endfor %}
  43. </table>
  44. <div class="modal-footer">
  45. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  46. <button type="submit" class="btn btn-primary">Save</button>
  47. </div>
  48. </form>