Cleanup Quantity :pathname related code

This commit is contained in:
2025-03-23 13:11:14 +01:00
parent 3b30e58ff3
commit 1cddc794d2
6 changed files with 13 additions and 46 deletions

View File

@@ -3,7 +3,7 @@
<% row = dom_id(form.object.quantity, :new, :readout) %>
<%- tag.tr id: row, onkeydown: 'processKey(event)' do %>
<td>
<%= form.object.quantity.full_name.delete_prefix(@closest_ancestor.full_name) %>
<%= form.object.quantity.pathname.delete_prefix(@closest_ancestor.pathname) %>
<%= form.hidden_field :quantity_id %>
</td>
<td>

View File

@@ -1,7 +1,7 @@
<%= tabular_form_with url: new_measurement_path, html: {id: :new_readouts_form} do %>
<% if @readouts&.present? %>
<fieldset>
<%= tag.legend @closest_ancestor.full_name if @closest_ancestor&.full_name %>
<%= tag.legend @closest_ancestor.pathname if @closest_ancestor&.pathname %>
<table class="items centered">
<tbody id="readouts">
<tr id="new_readouts_actions">