TokiTranslate/app/views/languages/index.html.erb
2023-10-24 23:47:01 -04:00

21 lines
504 B
Plaintext

<h1>Languages</h1>
<table>
<tr>
<td><b>Language</b></td>
</tr>
<% @languages.each do |language| %>
<tr>
<td><%= language.name %></td>
<td><%= link_to "Edit", edit_language_path(language) %></td>
<td> | </td>
<td><%= link_to "Delete", language_path(language), data: { turbo_method: :delete,
turbo_confirm: "Are you sure?" } %></td>
</tr>
<% end %>
</table>
<br/>
<br/>
<%= link_to "New Language", new_language_path %>