diff --git a/app/models/sheet.rb b/app/models/sheet.rb index 68126f6..1ca4237 100644 --- a/app/models/sheet.rb +++ b/app/models/sheet.rb @@ -15,7 +15,7 @@ class Sheet < ActiveRecord::Base - attr_accessible :donates_attributes, :sheet_type, :people_attributes, :sheet_years_attributes, :corporate, :address, :address2, :address3, :pc, :city, :country, :skills + attr_accessible :donates_attributes, :sheet_type, :people_attributes, :sheet_years_attributes, :corporate, :address, :address2, :address3, :pc, :city, :country, :skills, :other_mail, :other_phone accepts_nested_attributes_for :people, :allow_destroy => true accepts_nested_attributes_for :sheet_years, :allow_destroy => true diff --git a/app/views/admin/people/_person.html.haml b/app/views/admin/people/_person.html.haml index 8bdf55e..084aad6 100644 --- a/app/views/admin/people/_person.html.haml +++ b/app/views/admin/people/_person.html.haml @@ -26,7 +26,7 @@ -img = image_tag("/images/style/quartz-admin/principal_active.png") -else -img = image_tag("/images/style/quartz-admin/principal.png") - = link_to img, :url => principal_person_path(person), :method => :get, :remote => true + = link_to img, :url => principal_admin_person_path(person), :method => :get, :remote => true -else =image_tag("/images/style/quartz-admin/principal_active.png") if person == person.sheet.person \ No newline at end of file