From c95cf9c2e468276a304ddcbe7c1a22217e3679fd Mon Sep 17 00:00:00 2001
From: JackBlacklight
Date: Wed, 4 Sep 2024 11:48:07 -0400
Subject: [PATCH] fix incorrect paginate variable name
---
app/views/admin/agreements/index.html.erb | 4 ++--
app/views/admin/deposits/index.html.erb | 12 +-----------
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/app/views/admin/agreements/index.html.erb b/app/views/admin/agreements/index.html.erb
index ea262117..4b6d1f6f 100644
--- a/app/views/admin/agreements/index.html.erb
+++ b/app/views/admin/agreements/index.html.erb
@@ -3,7 +3,7 @@
<%= link_to('Download CSV File', '/admin/agreements.csv') %>
-
+
@@ -36,4 +36,4 @@
<% end %>
-
+
diff --git a/app/views/admin/deposits/index.html.erb b/app/views/admin/deposits/index.html.erb
index 37c2273f..e9d4ab6d 100644
--- a/app/views/admin/deposits/index.html.erb
+++ b/app/views/admin/deposits/index.html.erb
@@ -1,16 +1,6 @@
Self-Deposits <%= @posts %>
-<%= form_with url: admin_site_options_path, method: :patch do |form| %>
- <% if deposits_enabled? %>
- <% deposit_action = "Disable" %>
- <% enable = false %>
- <% else %>
- <% deposit_action = "Enable" %>
- <% enable = true %>
- <% end %>
- <%= form.hidden_field :enable_deposits, value: enable %>
- <%= form.submit "#{deposit_action} Deposits" %>
-<% end %>
+ <%= render :partial=>'enable_deposits_form' %>