invoices: em-dash cleanup in admin form and PDF copy

This commit is contained in:
Sergei Poljanski 2026-07-16 20:01:26 +04:00
commit 0cafc484c7
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 3 additions and 3 deletions

View file

@ -301,7 +301,7 @@ class InvoicePdf
hint = if asset[:amount_param]
"Scan the QR with any #{CryptoAsset.name(coin)} wallet to prefill the payment."
else
"QR encodes the address. Send #{coin} only — verify the network before sending."
"QR encodes the address. Send #{coin} only. Verify the network before sending."
end
pdf.font_size(7) { pdf.text hint }
pdf.fill_color COLOR_TEXT

View file

@ -68,7 +68,7 @@
<tbody>
<% (@form_values[:items] || [{'description' => '', 'qty' => '', 'unit_price' => ''}]).each_with_index do |item, i| %>
<tr class="item-row">
<td><input type="text" name="items[<%= i %>][description]" value="<%= item['description'] %>" placeholder="DevOps engineering May 2026" maxlength="300" /></td>
<td><input type="text" name="items[<%= i %>][description]" value="<%= item['description'] %>" placeholder="DevOps engineering, May 2026" maxlength="300" /></td>
<td class="num"><input type="text" name="items[<%= i %>][qty]" value="<%= item['qty'] %>" placeholder="1" inputmode="decimal" /></td>
<td class="num"><input type="text" name="items[<%= i %>][unit_price]" value="<%= item['unit_price'] %>" placeholder="0.00" inputmode="decimal" /></td>
<td class="actions"><button type="button" class="remove-row" aria-label="Remove">×</button></td>
@ -90,7 +90,7 @@
<label for="crypto_coin">Coin</label>
<select id="crypto_coin" name="crypto_coin">
<% CryptoAsset::CODES.each do |c| %>
<option value="<%= c %>" <%= 'selected' if (@form_values[:crypto_coin] || 'LTC') == c %>><%= c %> <%= CryptoAsset.name(c) %></option>
<option value="<%= c %>" <%= 'selected' if (@form_values[:crypto_coin] || 'LTC') == c %>><%= c %> · <%= CryptoAsset.name(c) %></option>
<% end %>
</select>
</div>