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.

38 lines
1.3 KiB

  1. <%= turbo_frame_tag :scores do %>
  2. <table class="min-w-full divide-gray-300 dark:divide-gray-500 divide-y-4 border-gray-200 dark:border-gray-600 border-2 dark:bg-gray-600">
  3. <thead>
  4. <tr class="whitespace-nowrap text-md text-left font-semibold text-gray-800 dark:text-gray-200 bg-gray-100 dark:bg-gray-700">
  5. <th scope="col" class="p-2">
  6. <%= pagy_sort_link(@q, :name) %>
  7. </th>
  8. <th scope="col" class="p-2">
  9. <%= pagy_sort_link(@q, :grade) %>
  10. </th>
  11. <th scope="col" class="p-2">
  12. <%= pagy_sort_link(@q, :created_at) %>
  13. </th>
  14. <th scope="col" class="p-2">
  15. Actions
  16. </th>
  17. </tr>
  18. <tr class="text-gray-800 bg-gray-100 dark:bg-gray-600 dark:text-gray-200">
  19. <th class='p-1'>
  20. <%= pagy_search_field(@q, :name_cont, class: "text-sm w-full h-8 text-gray-800 dark:text-gray-400 bg-gray-200 dark:bg-gray-700") %>
  21. </th>
  22. <th class='p-1'>
  23. </th>
  24. <th class='p-1'>
  25. </th>
  26. <th class='p-1'>
  27. </th>
  28. </tr>
  29. </thead>
  30. <tbody class="divide-y divide-gray-200 dark:divide-gray-500 ">
  31. <%= render @scores %>
  32. </tbody>
  33. </table>
  34. <div class="flex flex-col items-center justify-center text-sm text-gray-500 my-5 gap-2">
  35. <%== pagy_nav @pagy %>
  36. <%== pagy_info @pagy %>
  37. </div>
  38. <%end%>