|
4 | 4 | <table class="min-w-full leading-normal"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
8 | | - <%= sort_link_to 'Applied', :date_applied %> |
9 | | - </th> |
10 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
11 | | - <%= sort_link_to 'Company', :company_name %> |
12 | | - </th> |
13 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
14 | | - <%= sort_link_to 'Position', :position_title %> |
15 | | - </th> |
16 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
17 | | - Type |
18 | | - </th> |
19 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
20 | | - Contact Method |
21 | | - </th> |
22 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
23 | | - P.o.C. |
24 | | - </th> |
25 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
26 | | - Email |
27 | | - </th> |
28 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
29 | | - Website |
30 | | - </th> |
31 | | - <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
32 | | - Actions |
33 | | - </th> |
34 | | - </tr> |
35 | | - </thead> |
36 | | - <tbody id="job_applications"> |
37 | | - <%= render @job_applications %> |
38 | | - </tbody> |
39 | | - </table> |
40 | | - <% else %> |
41 | | - <div class="text-center py-10"> |
42 | | - <svg class="mx-auto h-12 w-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"> |
43 | | - <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" /> |
44 | | - </svg> |
45 | | - <p class="mt-1 text-sm text-gray-500"> |
46 | | - <%= "No results match your search criteria." if params[:search].present? || params[:method_of_contact].present? || params[:position_type].present? %> |
47 | | - </p> |
48 | | - </div> |
49 | | - <% end %> |
50 | | - </div> |
51 | | -<% end %> |
| 7 | + <tr> |
| 8 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
| 9 | + <%= sort_link_to 'Applied', 'date_applied' %> |
| 10 | + </th> |
| 11 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
| 12 | + <%= sort_link_to 'Company', 'company_name' %> |
| 13 | + </th> |
| 14 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase 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 text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
| 18 | + Type |
| 19 | + </th> |
| 20 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase 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 text-xs font-semibold text-gray-600 uppercase 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 text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
| 27 | + Email |
| 28 | + </th> |
| 29 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> |
| 30 | + Website |
| 31 | + </th> |
| 32 | + <th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase 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 %> |
0 commit comments