diff --git a/app/views/line_items/_issue_form.html.erb b/app/views/line_items/_issue_form.html.erb index d8dcc3a..7429bba 100644 --- a/app/views/line_items/_issue_form.html.erb +++ b/app/views/line_items/_issue_form.html.erb @@ -3,14 +3,14 @@ <% @issue.line_items.build if @issue.line_items.empty? && !readonly %>
> -

Line Items

+

<%= t :label_line_items %>

- - - + + + <% unless readonly %> <% end %> diff --git a/app/views/line_items/_issue_line_items.html.erb b/app/views/line_items/_issue_line_items.html.erb index 6026027..691beef 100644 --- a/app/views/line_items/_issue_line_items.html.erb +++ b/app/views/line_items/_issue_line_items.html.erb @@ -1,15 +1,15 @@ <% if @issue.line_items.any? %>
-

Line Items

+

<%= t :label_line_items %>

DescriptionQuantityUnit Price<%= t :label_description %><%= t :label_qty %><%= t :label_price %>
- - - - + + + + @@ -31,7 +31,7 @@ - + diff --git a/app/views/line_items/_line_item_fields.html.erb b/app/views/line_items/_line_item_fields.html.erb index 93636d3..a596f97 100644 --- a/app/views/line_items/_line_item_fields.html.erb +++ b/app/views/line_items/_line_item_fields.html.erb @@ -5,7 +5,7 @@ diff --git a/config/locales/en.yml b/config/locales/en.yml index 8147395..5a5cf7f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -11,5 +11,10 @@ # English strings go here for Rails i18n # Usage I18n.t(:label) en: + label_description: "Description" label_item: "Item" + label_line_items: "Line Items" + label_price: "Unit Price" + label_qty: "Quantity" + label_total: "Total" \ No newline at end of file
DescriptionQuantityUnit PriceTotal<%= t :label_description %><%= t :label_qty %><%= t :label_price %><%= t :label_total %>
Total<%= t :label_total %> <%= number_to_currency(total) %>
<%= f.text_field :description, size: 50, - placeholder: "Description", + placeholder: l(:label_description), no_label: true, disabled: readonly %>