agenda-libre-ruby/app/views/users/_form.html.haml

23 lines
518 B
Plaintext
Raw Normal View History

2013-11-14 10:54:09 +01:00
= form_for @user do |f|
- if @user.errors.any?
#error_explanation
%h2= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:"
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :login
= f.text_field :login
.field
= f.label :email
= f.text_field :email
.field
= f.label :firstname
= f.text_field :firstname
2019-05-09 17:49:01 +02:00
.field
= f.label :lastname
= f.text_field :lastname
2013-11-14 10:54:09 +01:00
.actions
= f.submit 'Save'