Skip to content

Commit

Permalink
add button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBlackLight committed Sep 5, 2024
1 parent c95cf9c commit 3afdec1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/admin/deposits/_enable_deposits_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<div class="col-4 text-right">
<%= form_with url: admin_site_options_path, method: :patch do |form| %>
<% if deposits_enabled? %>
<% action_label = "Disable Deposits" %>
Expand All @@ -9,4 +10,4 @@
<%= form.hidden_field SiteOption::DEPOSITS_ENABLED, value: enable %>
<%= form.submit action_label %>
<% end %>
</div>
4 changes: 4 additions & 0 deletions app/views/admin/deposits/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<div class="row align-items-center">
<div class="col-8">
<h2>Self-Deposits <%= @posts %>
</h2>
</div>
<%= render :partial=>'enable_deposits_form' %>
</div>
<div class="pagination"> <%= will_paginate @deposits %></div>
<table class="table">
<thead>
Expand Down

0 comments on commit 3afdec1

Please sign in to comment.