%= render DS::Dialog.new(frame: "drawer", responsive: true) do |dialog| %> <% dialog.with_header(custom_header: true) do %>
<%= t(".no_security_provider") %>
<% end %><%= t("holdings.cost_basis_cell.set_cost_basis_header", ticker: @holding.ticker, qty: format_quantity(@holding.qty)) %>
= <%= currency.symbol %><%= number_with_precision(current_per_share, precision: 2) || "0.00" %> <%= t("holdings.cost_basis_cell.per_share") %>
<%= l(trade_entry.date, format: :long) %>
<%= t( ".trade_history_entry", qty: trade_entry.trade.qty, security: trade_entry.trade.security.ticker, price: trade_entry.trade.price_money.format ) %>
<%= t(".no_trade_history") %>
<% end %><%= t(".switch_provider_description", provider: @holding.security.price_provider&.humanize || "Unknown") %>
<% if Security.providers.any? %> <%= form_with url: remap_security_holding_path(@holding), method: :patch, data: { controller: "auto-submit-form", "auto-submit-form-trigger-event-value": "change" } do |f| %><%= t(".no_security_provider") %>
<% end %><%= t(".provider_sent", ticker: @holding.provider_security.ticker) %>
<%= t(".last_price_update") %>: <%= @last_price_updated ? l(@last_price_updated, format: :long) : t(".never") %>
<%= t(".cost_basis_locked_description") %>
<%= t(".delete_subtitle") %>