bug fichier adhérent

This commit is contained in:
Nicolas Bally 2013-07-02 23:51:56 +02:00
parent bffcc1bb61
commit 2280378fec
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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