diff --git a/app/views/users/_form.html.haml b/app/views/users/_form.html.haml index 6c7403e..685a5a7 100644 --- a/app/views/users/_form.html.haml +++ b/app/views/users/_form.html.haml @@ -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' diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 7269c67..2ddc247 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -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