mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
<div class="contextual">
|
|
<%= link_to l(:button_edit), edit_item_path(@item), class: 'icon icon-edit' %>
|
|
<%= link_to l(:button_back), items_path, class: 'icon icon-list' %>
|
|
</div>
|
|
|
|
<h2><%= t(:item) %># <%= @item.id %> <%= @item.name %></h2>
|
|
|
|
<div class="issue details"> <div class="attributes">
|
|
<div class="splitcontent">
|
|
<div class="splitcontentleft">
|
|
<p><strong>SKU:</strong> <%= @item.sku.presence || "-" %></p>
|
|
<p><strong>Type:</strong> <%= @item.type.presence || "-" %></p>
|
|
<p><strong>Unit Price:</strong> <%= number_to_currency(@item.unit_price) %></p>
|
|
</div>
|
|
|
|
<div class="splitcontentleft">
|
|
<p><strong>Account:</strong> <%= @item.account&.name || "-" %></p>
|
|
<p>
|
|
<strong>Taxable:</strong>
|
|
<% 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 %>
|
|
</p>
|
|
<p>
|
|
<strong>Active:</strong>
|
|
<% 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 %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<p><strong>Description:</strong></p>
|
|
<div class="wiki" style="padding-left: 20px;">
|
|
<%= @item.description.presence || "<em>No description provided</em>".html_safe %>
|
|
</div>
|
|
</div>
|
|
</div> |