summaryrefslogtreecommitdiff
path: root/app/views/teams/_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/teams/_form.html.erb')
-rw-r--r--app/views/teams/_form.html.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/teams/_form.html.erb b/app/views/teams/_form.html.erb
new file mode 100644
index 0000000..fd10129
--- /dev/null
+++ b/app/views/teams/_form.html.erb
@@ -0,0 +1,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 %>