Guest User

Untitled

a guest
Jan 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <%= semantic_form_for(@quick_war) do |f| %>
  2. <% if @quick_war.errors.any? %>
  3. <div id="error_explanation">
  4. <h2><%= pluralize(@quick_war.errors.count, "error") %> prohibited this quick_war from being saved:</h2>
  5.  
  6. <ul>
  7. <% @quick_war.errors.full_messages.each do |msg| %>
  8. <li><%= msg %></li>
  9. <% end %>
  10. </ul>
  11. </div>
  12. <% end %>
  13. <% f.inputs do %>
  14. <%= f.input :clan_id %>
  15. <%= f.input :map, :as => :select, :collection => ["RO-Danzig", "RO-Kessel"] %>
  16. <%= f.input :start, :start_year => 2011 %>
  17. <%= f.input :player_amount, :as => :select, :collection => ["4on4", "5on5", "6on6", "7on7", "8on8"] %>
  18. <%= f.input :class, :include_blank => false, :as => :select, :collection => ["RO:Ladder clanwar", "friendly clanwar"] %>
  19. <%= f.input :irc %>
  20. <%= f.input :server %>
  21. <%= f.input :body %>
  22.  
  23. <% end %>
  24. <%= f.buttons %>
  25. <% end %>
Add Comment
Please, Sign In to add comment