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:
@@ -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 %>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user