residency/app/views/members/_form.html.haml

17 lines
409 B
Plaintext
Raw Normal View History

2022-12-20 16:05:26 +01:00
= 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'