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