1
0

Test pass: test_new, test_new_cancel

This commit is contained in:
cryptogopher
2021-01-21 18:09:40 +01:00
parent 80b10d108a
commit 8bd102f8de
3 changed files with 15 additions and 7 deletions

View File

@@ -35,9 +35,8 @@
<%= ff.number_field :value, {size: 8, step: :any, label: ''} %>
<%= ff.select :unit_id, unit_options, {label: ''} %>
<%= ff.hidden_field :_destroy %>
<%= link_to t(".button_delete_readout"), '#',
class: 'icon icon-del',
style: (@measurement.readouts.length > 1 ? "" : "display:none"),
<%= link_to t(".button_delete_readout"), '#', class: 'icon icon-del',
style: (@measurement.readouts.many? ? "" : "display:none"),
onclick: "deleteReadout(); return false;" %>
</p>
<% end %>