list_submissions.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% load i18n wagtailcrx_tags %}
  2. <div class="overflow">
  3. <table class="listing">
  4. <col />
  5. <col />
  6. <col />
  7. <thead>
  8. <tr>
  9. <th colspan="{{ data_headings|length|add:1 }}">
  10. <button class="button no" id="delete-submissions" style="visibility: hidden">{% trans "Delete selected submissions" %}</button>
  11. </th>
  12. </tr>
  13. <tr>
  14. <th><input type="checkbox" id="select-all" /></th>
  15. {% for heading in data_headings %}
  16. <th id="{{ heading.name }}" class="{% if heading.order %}ordered {{ heading.order }}{% endif %}">
  17. {% if heading.order %}<a href="?order_by={% if heading.order == 'ascending' %}-{% endif %}{{ heading.name }}">{{ heading.label }}</a>{% else %}{{ heading.label }}{% endif %}
  18. </th>
  19. {% endfor %}
  20. </tr>
  21. </thead>
  22. <tbody>
  23. {% for row in data_rows %}
  24. <tr>
  25. <td>
  26. <input type="checkbox" name="selected-submissions" class="select-submission" value="{{ row.model_id }}" />
  27. </td>
  28. {% for cell in row.fields %}
  29. <td>
  30. {% process_form_cell request cell %}
  31. </td>
  32. {% endfor %}
  33. <td>
  34. </tr>
  35. {% endfor %}
  36. </tbody>
  37. </table>
  38. </div>