summaryrefslogtreecommitdiff
path: root/app/views/matches/_form.html.erb
blob: bb33501de1591734ffc1698352d2a51e956c90dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<%= 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 :status %><br>
    <%= f.number_field :status %>
  </div>
  <div class="field">
    <%= f.label :tournament_id %><br>
    <%= f.text_field :tournament_id %>
  </div>
  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :winner_id %><br>
    <%= f.text_field :winner_id %>
  </div>
  <div class="field">
    <%= f.label :remote_id %><br>
    <%= f.text_field :remote_id %>
  </div>
  <div class="field">
    <%= f.label :submitted_peer_evaluations %><br>
    <%= f.number_field :submitted_peer_evaluations %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>