1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-21 22:24:29 +00:00

Added tournament backups to the database and added pages to restore and create backups

This commit is contained in:
2025-01-04 16:27:52 -05:00
parent 698576dac9
commit 49fbf6735d
17 changed files with 497 additions and 41 deletions

View File

@@ -1,11 +0,0 @@
<% if can? :manage, @tournament %>
<br><br>
<h3>Import Data</h3>
<%= form_for(Tournament.new, url: import_url(@tournament)) do |f| %>
<div class="field">
<%= f.label 'Import text' %><br>
<%= f.text_area :import_text, cols: "30", rows: "20" %>
</div>
<%= submit_tag "Import", :class=>"btn btn-success", data: { confirm: 'Are you sure? This will delete everything for the current tournament and restore it with the backup text pasted below.' }%>
<% end %>
<% end %>

View File

@@ -119,7 +119,7 @@
</table>
<% end %>
<% if can? :manage, @tournament %>
<br>
<br><br>
<h3>Background Jobs</h3>
<p>This is a list of queued or running background jobs. Match generation, bracket advancement, team score calculation, etc.</p>
<table class="table table-hover table-condensed">
@@ -148,9 +148,4 @@
</tbody>
</table>
<% end %>
<br>
<br>
<%= render 'import_form' %>
<br><br>