fix: Add data-label attributes for responsive table conversion on mobile
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
<tbody>
|
||||
<% matches.each do |match| %>
|
||||
<tr>
|
||||
<td><%= match.id %></td>
|
||||
<td><%= match.played_at&.strftime('%Y-%m-%d %H:%M') %></td>
|
||||
<td><%= match.team_1_p1_name %> + <%= match.team_1_p2_name %></td>
|
||||
<td><strong><%= match.team_1_score %></strong></td>
|
||||
<td><%= match.team_2_p1_name %> + <%= match.team_2_p2_name %></td>
|
||||
<td><strong><%= match.team_2_score %></strong></td>
|
||||
<td><%= match.status %></td>
|
||||
<td>
|
||||
<td data-label="ID"><%= match.id %></td>
|
||||
<td data-label="Date"><%= match.played_at&.strftime('%Y-%m-%d %H:%M') %></td>
|
||||
<td data-label="Team 1"><%= match.team_1_p1_name %> + <%= match.team_1_p2_name %></td>
|
||||
<td data-label="Score 1"><strong><%= match.team_1_score %></strong></td>
|
||||
<td data-label="Team 2"><%= match.team_2_p1_name %> + <%= match.team_2_p2_name %></td>
|
||||
<td data-label="Score 2"><strong><%= match.team_2_score %></strong></td>
|
||||
<td data-label="Status"><%= match.status %></td>
|
||||
<td data-label="Actions">
|
||||
<a href="/admin/matches/<%= match.id %>/edit">Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user