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' %> +