Sprankelprachtig aan/afmeldsysteem

_form.html.erb 556B

12345678910111213141516171819202122
  1. <%= form_for(group) do |f| %>
  2. <% if group.errors.any? %>
  3. <div id="error_explanation">
  4. <h2><%= pluralize(group.errors.count, "error") %> prohibited this group from being saved:</h2>
  5. <ul>
  6. <% group.errors.full_messages.each do |message| %>
  7. <li><%= message %></li>
  8. <% end %>
  9. </ul>
  10. </div>
  11. <% end %>
  12. <div class="actions">
  13. <div class="form-group">
  14. <%= f.label :name %>
  15. <%= f.text_field :name, class: 'form-control' %>
  16. </div>
  17. <%= f.submit class: 'btn btn-primary' %>
  18. </div>
  19. <% end %>