From c8764c149bb0a6ee1a54812e79b6756a38827480 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 23 Jan 2026 17:35:16 -0500 Subject: [PATCH] Added back tournament import text for the development environment --- app/views/tournament_backups/index.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/tournament_backups/index.html.erb b/app/views/tournament_backups/index.html.erb index 11dd808..47fd80d 100644 --- a/app/views/tournament_backups/index.html.erb +++ b/app/views/tournament_backups/index.html.erb @@ -27,3 +27,12 @@ and will also delete all of your current data. It's best to use the create backu

+<% if ENV["RAILS_ENV"] == "development" %> + <%= form_for(:tournament, url: import_manual_tournament_tournament_backups_path(@tournament)) do |f| %> +
+ <%= f.label 'Import text' %>
+ <%= f.text_area :import_text, cols: "30", rows: "20" %> +
+ <%= submit_tag "Import", class: "btn btn-success", data: { turbo_confirm: 'Are you sure? This will delete everything for the current tournament and restore it with the backup text pasted below.' } %> + <% end %> +<% end %> \ No newline at end of file