invoices: em-dash cleanup in admin form and PDF copy
This commit is contained in:
parent
82fc1c6e17
commit
0cafc484c7
2 changed files with 3 additions and 3 deletions
|
|
@ -301,7 +301,7 @@ class InvoicePdf
|
||||||
hint = if asset[:amount_param]
|
hint = if asset[:amount_param]
|
||||||
"Scan the QR with any #{CryptoAsset.name(coin)} wallet to prefill the payment."
|
"Scan the QR with any #{CryptoAsset.name(coin)} wallet to prefill the payment."
|
||||||
else
|
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
|
end
|
||||||
pdf.font_size(7) { pdf.text hint }
|
pdf.font_size(7) { pdf.text hint }
|
||||||
pdf.fill_color COLOR_TEXT
|
pdf.fill_color COLOR_TEXT
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<% (@form_values[:items] || [{'description' => '', 'qty' => '', 'unit_price' => ''}]).each_with_index do |item, i| %>
|
<% (@form_values[:items] || [{'description' => '', 'qty' => '', 'unit_price' => ''}]).each_with_index do |item, i| %>
|
||||||
<tr class="item-row">
|
<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 %>][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="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>
|
<td class="actions"><button type="button" class="remove-row" aria-label="Remove">×</button></td>
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
<label for="crypto_coin">Coin</label>
|
<label for="crypto_coin">Coin</label>
|
||||||
<select id="crypto_coin" name="crypto_coin">
|
<select id="crypto_coin" name="crypto_coin">
|
||||||
<% CryptoAsset::CODES.each do |c| %>
|
<% 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 %>
|
<% end %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue