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

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

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>