Merge pull request #38 from coopdevs/date_of_birth_in_form
date_of_birth in views new and edit
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
= f.input :phone
|
||||
= f.input :alt_phone
|
||||
= f.input :date_of_birth, start_year: Date.today.year - 90, end_year: Date.today.year - 12, include_blank: :true
|
||||
|
||||
= f.input :description, as: 'text'
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
%dl.dl-horizontal
|
||||
- if @user.date_of_birth.present?
|
||||
- if @user.date_of_birth.present? && admin?
|
||||
%dt= User.human_attribute_name(:date_of_birth)
|
||||
%dd= l @user.date_of_birth
|
||||
- phones = [@user.phone, @user.alt_phone].map(&:presence).compact
|
||||
|
||||
Reference in New Issue
Block a user