diff --git a/app/views/items/show.html.erb b/app/views/items/show.html.erb index b86351d..6cbcba0 100644 --- a/app/views/items/show.html.erb +++ b/app/views/items/show.html.erb @@ -8,15 +8,15 @@
-

SKU: <%= @item.sku.presence || "-" %>

-

Type: <%= @item.type.presence || "-" %>

-

Unit Price: <%= number_to_currency(@item.unit_price) %>

+

<%=t(:field_sku)%>: <%= @item.sku.presence || "-" %>

+

<%=t(:label_type)%>: <%= @item.type.presence || "-" %>

+

<%=t(:field_unit_price)%>: <%= number_to_currency(@item.unit_price) %>

-

Account: <%= @item.account&.name || "-" %>

+

<%=t(:label_account)%>: <%= @item.account&.name || "-" %>

- Taxable: + <%=t(:field_taxable)%>: <% if @item.taxable %> <%=t(:yes)%> <% else %> @@ -24,7 +24,7 @@ <% end %>

- Active: + <%=t(:label_active)%>: <% if @item.active %> <%=t(:yes)%> <% else %> @@ -36,7 +36,7 @@


-

Description:

+

<%=t(:label_description)%>:

<%= @item.description.presence || "No description provided".html_safe %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 300e11e..641a263 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -16,6 +16,7 @@ en: field_taxable: "Taxable" field_unit_price: "Unit Price" + label_active: "Activie" label_account: "Account" label_accounts: "Accounts" label_account_count: "Number of Accounts:" @@ -32,6 +33,7 @@ en: label_remove: "Remove" label_sync_now_accounts: "Sync Accounts" label_sync_now_items: "Sync Items" + label_type: "Type" label_total: "Total" label_yes: "Yes"