mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
Added back tournament import text for the development environment
This commit is contained in:
@@ -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 %>
|
||||||
Reference in New Issue
Block a user