diff --git a/app/views/trades/show.html.erb b/app/views/trades/show.html.erb
index 97c48e2d..2c7dd392 100644
--- a/app/views/trades/show.html.erb
+++ b/app/views/trades/show.html.erb
@@ -15,20 +15,22 @@
<%= f.date_field :date,
label: t(".date_label"),
max: Date.current,
+ disabled: @entry.linked?,
"data-auto-submit-form-target": "auto" %>
<%= f.select :nature,
[["Buy", "outflow"], ["Sell", "inflow"]],
{ container_class: "w-1/3", label: "Type", selected: @entry.amount.negative? ? "inflow" : "outflow" },
- { data: { "auto-submit-form-target": "auto" } } %>
+ { data: { "auto-submit-form-target": "auto" }, disabled: @entry.linked? } %>
<%= f.fields_for :entryable do |ef| %>
<%= ef.number_field :qty,
label: t(".quantity_label"),
step: "any",
value: trade.qty.abs,
- "data-auto-submit-form-target": "auto" %>
+ "data-auto-submit-form-target": "auto",
+ disabled: @entry.linked? %>
<% end %>
@@ -37,7 +39,9 @@
label: t(".cost_per_share_label"),
disable_currency: true,
auto_submit: true,
- min: 0 %>
+ min: 0,
+ disabled: @entry.linked?,
+ disable_currency: @entry.linked? %>
<% end %>
<% end %>
diff --git a/app/views/transactions/_header.html.erb b/app/views/transactions/_header.html.erb
index 565892d5..6c7b1615 100644
--- a/app/views/transactions/_header.html.erb
+++ b/app/views/transactions/_header.html.erb
@@ -15,6 +15,12 @@
<% if entry.transaction.transfer? %>
<%= icon "arrow-left-right", class: "mt-1" %>
<% end %>
+
+ <% if entry.linked? %>
+
+ <%= icon("refresh-ccw", size: "sm") %>
+
+ <% end %>
diff --git a/app/views/transactions/show.html.erb b/app/views/transactions/show.html.erb
index 507afa29..d2adc414 100644
--- a/app/views/transactions/show.html.erb
+++ b/app/views/transactions/show.html.erb
@@ -18,6 +18,7 @@
<%= f.date_field :date,
label: t(".date_label"),
max: Date.current,
+ disabled: @entry.linked?,
"data-auto-submit-form-target": "auto" %>
<% unless @entry.transaction.transfer? %>
@@ -25,13 +26,15 @@
<%= f.select :nature,
[["Expense", "outflow"], ["Income", "inflow"]],
{ container_class: "w-1/3", label: t(".nature"), selected: @entry.amount.negative? ? "inflow" : "outflow" },
- { data: { "auto-submit-form-target": "auto" } } %>
+ { data: { "auto-submit-form-target": "auto" }, disabled: @entry.linked? } %>
<%= f.money_field :amount, label: t(".amount"),
container_class: "w-2/3",
auto_submit: true,
min: 0,
- value: @entry.amount.abs %>
+ value: @entry.amount.abs,
+ disabled: @entry.linked?,
+ disable_currency: @entry.linked? %>
<%= f.fields_for :entryable do |ef| %>