mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
better display flags
This commit is contained in:
@@ -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' %>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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 #"
|
||||||
|
|
||||||
Reference in New Issue
Block a user