user activation on creation/edit

This commit is contained in:
2015-10-23 19:57:32 -05:00
parent 7ddf93578e
commit 0d597813ec
5 changed files with 28 additions and 6 deletions

View File

@ -26,4 +26,7 @@
= f.label :staff
= f.check_box :staff
= f.label :active
= f.check_box :active
= f.submit

View File

@ -6,6 +6,10 @@
%p Email: #{mail_to(@user.email, nil, encode: 'hex')}
%p Phone: #{number_to_phone @user.phone} #{page_link(@user)}
%p Admin: #{@user.admin?}
%p Staff: #{@user.staff?}
%p Account Active: #{@user.active?}
%p Has Signed in: #{!@user.authentications.blank?}
- unless @user.children.empty?
%p Children: