Refine Unit table display

This commit is contained in:
2024-03-23 15:45:39 +01:00
parent f2088ea39f
commit 7387e7b1c1
3 changed files with 2 additions and 3 deletions

View File

@@ -24,5 +24,4 @@
name: :cancel, onclick: render_turbo_stream('form_close', {link_id: link_id}) %>
</td>
<% end %>
<!-- TODO: display error_messages_for unit -->
<% end %>

View File

@@ -4,7 +4,7 @@
onclick: 'this.blur();', data: {turbo_stream: true} %>
</td>
<td><%= unit.name %></td>
<td class="number"><%= scientifize(unit.multiplier) if unit.base %></td>
<td class="number"><%= scientifize(unit.multiplier) %></td>
<% if current_user.at_least(:active) %>
<td class="actions">