|
1 | 1 | <%= turbo_frame_tag "job_applications_table" do %> |
2 | 2 | <div class="overflow-x-auto bg-white shadow-md rounded-lg"> |
3 | 3 | <% if @job_applications.any? %> |
4 | | - <table class="min-w-full leading-normal"> |
5 | | - <thead class="text-xs"> |
| 4 | + <table class="w-full"> |
| 5 | + <thead class="text-xs bg-gray-100 text-left font-semibold text-gray-600 w-8 border-b-2"> |
6 | 6 | <tr> |
7 | | - <tr> |
8 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
9 | | - <%= sort_link_to 'Date Applied', 'date_applied' %> |
10 | | - </th> |
11 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
12 | | - <%= sort_link_to 'Company Name', 'company_name' %> |
13 | | - </th> |
14 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
15 | | - <%= sort_link_to 'Position', 'position_title' %> |
16 | | - </th> |
17 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
18 | | - Type |
19 | | - </th> |
20 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
21 | | - Contact Method |
22 | | - </th> |
23 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
24 | | - P.o.C. |
25 | | - </th> |
26 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
27 | | - Email |
28 | | - </th> |
29 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
30 | | - Website |
31 | | - </th> |
32 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left font-semibold text-gray-600 tracking-wider"> |
33 | | - Actions |
34 | | - </th> |
35 | | - </tr> |
36 | | - </thead> |
37 | | - <tbody id="job_applications"> |
38 | | - <%= render partial: 'job_application', collection: job_applications %> |
39 | | - </tbody> |
40 | | - </table> |
41 | | - <% else %> |
42 | | - <div class="text-center py-10"> |
43 | | - <svg class="mx-auto h-12 w-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"> |
44 | | - <path vector-effect="non-scaling-stroke" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z" /> |
45 | | - </svg> |
46 | | - <p class="mt-1 text-sm text-gray-500"> |
47 | | - <%= "No results match your search criteria." if params[:search].present? || params[:method_of_contact].present? || params[:position_type].present? %> |
48 | | - </p> |
49 | | - </div> |
50 | | - <% end %> |
51 | | - </div> |
52 | | - <% end %> |
| 7 | + <th class="px-5 py-3 w-8"> |
| 8 | + <%= sort_link_to 'Applied', 'date_applied' %> |
| 9 | + </th> |
| 10 | + <th class="px-5 py-3 w-48"> |
| 11 | + <%= sort_link_to 'Company', 'company_name' %> |
| 12 | + </th> |
| 13 | + <th class="px-5 py-3 w-48"> |
| 14 | + <%= sort_link_to 'Position', 'position_title' %> |
| 15 | + </th> |
| 16 | + <th class="px-5 py-3"> |
| 17 | + Type |
| 18 | + </th> |
| 19 | + <th class="px-5 py-3 w-48"> |
| 20 | + Contact Method |
| 21 | + </th> |
| 22 | + <th class="px-5 py-3 w-48"> |
| 23 | + P.o.C. |
| 24 | + </th> |
| 25 | + <th class="px-5 py-3 w-96"> |
| 26 | + Email |
| 27 | + </th> |
| 28 | + <th class="px-5 py-3"> |
| 29 | + <%= sort_link_to 'Claimed', 'claimed_for_unemployment' %> |
| 30 | + </th> |
| 31 | + <th class="px-5 py-3"> |
| 32 | + Website |
| 33 | + </th> |
| 34 | + <th class="px-5 py-3"> |
| 35 | + Actions |
| 36 | + </th> |
| 37 | + </tr> |
| 38 | + </thead> |
| 39 | + <tbody id="job_applications"> |
| 40 | + <%= render partial: 'job_application', collection: job_applications %> |
| 41 | + </tbody> |
| 42 | + </table> |
| 43 | + <% else %> |
| 44 | + <div class="text-center py-10"> |
| 45 | + <svg class="mx-auto h-12 w-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"> |
| 46 | + <path vector-effect="non-scaling-stroke" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z" /> |
| 47 | + </svg> |
| 48 | + <p class="mt-1 text-sm text-gray-500"> |
| 49 | + <%= "No results match your search criteria." if params[:search].present? || params[:method_of_contact].present? || params[:position_type].present? %> |
| 50 | + </p> |
| 51 | + </div> |
| 52 | + <% end %> |
| 53 | + </div> |
| 54 | +<% end %> |
0 commit comments