summaryrefslogtreecommitdiff
path: root/app/views/matches/_form.html.erb
blob: 7d0a371bb2e5d7374adf4ff1cb3835a05dce12f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%= form_for(@match) do |f| %>
  <% if @match.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:</h2>

      <ul>
      <% @match.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :tournament %><br>
    <%= f.text_field :tournament %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>