_rows.html 870 B

12345678910111213141516171819202122232425262728293031323334
  1. <table>
  2. <thead>
  3. <tr>
  4. <th>Designators</th>
  5. <th>Qty</th>
  6. <th>Raw Value</th>
  7. <th>Footprint</th>
  8. <th>Category</th>
  9. <th>State</th>
  10. <th></th>
  11. <th>Scout Result</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for row in session.rows %}
  16. <tr>
  17. <td>{{ row.designators | join(", ") }}</td>
  18. <td>{{ row.quantity }}</td>
  19. <td>{{ row.raw_value }}</td>
  20. <td>{{ row.footprint or "" }}</td>
  21. <td>{{ row.category.value }}</td>
  22. <td class="state">{{ row.state.value }}</td>
  23. <td>
  24. <button hx-get="/session/{{ session.session_id }}/row/{{ row.row_id }}/scout"
  25. hx-target="#row-{{ row.row_id }}-result"
  26. hx-swap="innerHTML">
  27. Scout
  28. </button>
  29. </td>
  30. <td id="row-{{ row.row_id }}-result"></td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>