Browse Source

action items-center

main
pvincent 5 months ago
parent
commit
1f41efec10
  1. 8
      app/views/scores/_score.html.erb

8
app/views/scores/_score.html.erb

@ -7,11 +7,11 @@
<%= score.grade %>
</td>
<td>
<td class='flex items-end'>
<% if action_name != "show" %>
<%= link_to score, 'data-tooltip': 'show',class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :eye %><% end %>
<%= link_to edit_score_path(score), 'data-tooltip': 'edit', class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :edit %><% end %>
<%= link_to score, 'data-tooltip': 'delete', data:{ turbo_method: :delete}, class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :trash %><% end %>
<%= link_to score, 'data-tooltip': 'show',class: 'mr-1 border rounded-lg border-purple-800 p-2 bg-white' do %><%=fa_icon :eye %><% end %>
<%= link_to edit_score_path(score), 'data-tooltip': 'edit', class: 'mr-1 border rounded-lg border-purple-800 p-2 bg-white' do %><%=fa_icon :edit %><% end %>
<%= link_to score, 'data-tooltip': 'delete', data:{ turbo_method: :delete}, class: 'border rounded-lg border-purple-800 mr-1 p-2 bg-white' do %><%=fa_icon :trash %><% end %>
<hr class="mt-6">
<% end %>
</td>

Loading…
Cancel
Save