1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-23 14:44:06 +00:00

Preliminary import/export feature

This commit is contained in:
2019-01-30 20:16:56 +00:00
parent 46b8888245
commit 2b92bdaf66
8 changed files with 228 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
<% 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 %>