mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 15:50:50 +00:00
Added basic scaffolds for schools wrestlers and weights
This commit is contained in:
25
app/views/schools/_form.html.erb
Normal file
25
app/views/schools/_form.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<%= form_for(@school) do |f| %>
|
||||
<% if @school.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@school.errors.count, "error") %> prohibited this school from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @school.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :name %><br>
|
||||
<%= f.text_field :name %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :score %><br>
|
||||
<%= f.number_field :score %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user