better display flags

This commit is contained in:
2026-03-17 20:35:40 -04:00
parent 795906b4f5
commit cca822c570
3 changed files with 16 additions and 6 deletions

View File

@@ -26,10 +26,18 @@
<td class="description"><%= truncate(item.description, length: 60) %></td> <td class="description"><%= truncate(item.description, length: 60) %></td>
<td class="unit_price"><%= number_to_currency(item.unit_price) %></td> <td class="unit_price"><%= number_to_currency(item.unit_price) %></td>
<td class="taxable center"> <td class="taxable center">
<%= item.taxable ? content_tag(:span, '', class: 'icon icon-ok') : "" %> <% if item.taxable %>
<span class="icon icon-ok" style="color: green;"><%=t(:yes)%></span>
<% else %>
<span class="icon icon-not-ok" style="color: #999;"><%=t(:no)%></span>
<% end %>
</td> </td>
<td class="active center"> <td class="active center">
<%= checked_image item.active %> <% if item.active %>
<span class="icon icon-ok" style="color: green;"><%=t(:yes)%></span>
<% else %>
<span class="icon icon-not-ok" style="color: #999;"><%=t(:no)%></span>
<% end %>
</td> </td>
<td class="buttons"> <td class="buttons">
<%= link_to l(:button_edit), edit_item_path(item), class: 'icon icon-edit' %> <%= link_to l(:button_edit), edit_item_path(item), class: 'icon icon-edit' %>

View File

@@ -18,17 +18,17 @@
<p> <p>
<strong>Taxable:</strong> <strong>Taxable:</strong>
<% if @item.taxable %> <% if @item.taxable %>
<span class="icon icon-ok" style="color: green;">Yes</span> <span class="icon icon-ok" style="color: green;"><%=t(:yes)%></span>
<% else %> <% else %>
<span class="icon icon-not-ok" style="color: #999;">No</span> <span class="icon icon-not-ok" style="color: #999;"><%=t(:no)%></span>
<% end %> <% end %>
</p> </p>
<p> <p>
<strong>Active:</strong> <strong>Active:</strong>
<% if @item.active %> <% if @item.active %>
<span class="icon icon-ok" style="color: green;">Yes</span> <span class="icon icon-ok" style="color: green;"><%=t(:yes)%></span>
<% else %> <% else %>
<span class="icon icon-not-ok" style="color: #999;">No</span> <span class="icon icon-not-ok" style="color: #999;"><%=t(:no)%></span>
<% end %> <% end %>
</p> </p>
</div> </div>

View File

@@ -27,11 +27,13 @@ en:
label_line_items: "Line Items" label_line_items: "Line Items"
label_price: "Unit Price" label_price: "Unit Price"
label_item_new: "New Item" label_item_new: "New Item"
label_no: "No"
label_qty: "Quantity" label_qty: "Quantity"
label_remove: "Remove" label_remove: "Remove"
label_sync_now_accounts: "Sync Accounts" label_sync_now_accounts: "Sync Accounts"
label_sync_now_items: "Sync Items" label_sync_now_items: "Sync Items"
label_total: "Total" label_total: "Total"
label_yes: "Yes"
notice_added_from: "Added from issue #" notice_added_from: "Added from issue #"