volunteers/app/views/members/_form.html.haml
2022-12-20 17:05:26 +02:00

17 lines
409 B
Plaintext

= form_for @member do |f|
- if @member.errors.any?
#error_explanation
%h2= "#{pluralize(@member.errors.count, "error")} prohibited this member from being saved:"
%ul
- @member.errors.full_messages.each do |message|
%li= message
.field
= f.label :name
= f.text_field :name
.field
= f.label :public
= f.check_box :public
.actions
= f.submit 'Save'