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 1d215d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 @@ -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 %>
</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 1d215d7

Please sign in to comment.