1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added back tournament import text for the development environment

This commit is contained in:
2026-01-23 17:35:16 -05:00
parent fe9a9c628c
commit c8764c149b

View File

@@ -27,3 +27,12 @@ and will also delete all of your current data. It's best to use the create backu
</tbody> </tbody>
</table> </table>
<br><br> <br><br>
<% if ENV["RAILS_ENV"] == "development" %>
<%= form_for(:tournament, url: import_manual_tournament_tournament_backups_path(@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: { turbo_confirm: 'Are you sure? This will delete everything for the current tournament and restore it with the backup text pasted below.' } %>
<% end %>
<% end %>