diff --git a/app/views/admin/deposits/_enable_deposits_form.html.erb b/app/views/admin/deposits/_enable_deposits_form.html.erb index 7451bf90..318ce80f 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" %> @@ -7,6 +8,6 @@ <% enable = true %> <% end %> <%= form.hidden_field SiteOption::DEPOSITS_ENABLED, value: enable %> - <%= form.submit action_label %> + <%= form.submit action_label, class: "btn btn-secondary"%> <% 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' %> +