mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 23:34:51 +00:00
Added baumspage roster importer
This commit is contained in:
11
app/views/schools/_baums_roster_import.html.erb
Normal file
11
app/views/schools/_baums_roster_import.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<% if can? :manage, @school %>
|
||||
<br><br>
|
||||
<h3>Import Baumspage Roster</h3>
|
||||
<%= form_for(School.new, url: import_baumspage_roster_url(@school)) do |f| %>
|
||||
<div class="field">
|
||||
<%= f.label 'Baumspage roster text' %><br>
|
||||
<%= f.text_area :baums_text, cols: "30", rows: "20" %>
|
||||
</div>
|
||||
<%= submit_tag "Import", :class=>"btn btn-success", data: { confirm: 'Are you sure? This will delete your current roster.' }%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -74,3 +74,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% if can? :manage, @school %>
|
||||
<%= render 'baums_roster_import' %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user