From 2280378fecbd5fa04c1889fdbd9b919d8914b5bc Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 2 Jul 2013 23:51:56 +0200 Subject: [PATCH] =?UTF-8?q?bug=20fichier=20adh=C3=A9rent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/sheet.rb | 2 +- app/views/admin/people/_person.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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