From 3afdec185caf70e696fd25486ccb6bb9018a3fcb Mon Sep 17 00:00:00 2001 From: JackBlacklight Date: Thu, 5 Sep 2024 12:44:12 -0400 Subject: [PATCH] add button styling --- app/views/admin/deposits/_enable_deposits_form.html.erb | 3 ++- app/views/admin/deposits/index.html.erb | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/admin/deposits/_enable_deposits_form.html.erb b/app/views/admin/deposits/_enable_deposits_form.html.erb index 7451bf90..441936e7 100644 --- a/app/views/admin/deposits/_enable_deposits_form.html.erb +++ b/app/views/admin/deposits/_enable_deposits_form.html.erb @@ -1,3 +1,4 @@ +
<%= form_with url: admin_site_options_path, method: :patch do |form| %> <% if deposits_enabled? %> <% action_label = "Disable Deposits" %> @@ -9,4 +10,4 @@ <%= form.hidden_field SiteOption::DEPOSITS_ENABLED, value: enable %> <%= form.submit action_label %> <% end %> - \ No newline at end of file +
diff --git a/app/views/admin/deposits/index.html.erb b/app/views/admin/deposits/index.html.erb index e9d4ab6d..a2900564 100644 --- a/app/views/admin/deposits/index.html.erb +++ b/app/views/admin/deposits/index.html.erb @@ -1,6 +1,10 @@ +
+

Self-Deposits <%= @posts %>

+
<%= render :partial=>'enable_deposits_form' %> +