pic_vert_app/app/views/sheets/show.html.haml
2013-01-08 22:47:42 +01:00

55 lines
1.4 KiB
Plaintext

#sheet_show
.links{:style => "float:right;"}
= link_to 'Modifier', edit_sheet_path(@sheet), :method => :get, :remote => true
= link_to 'Retour', "#", :onclick => "$('#sheet_show').remove();return false;"
%h1
Fiche n°
=@sheet.id
Adhérent depuis
=@sheet.first_year
="/"
=@sheet.last_year
=#debug Sheet.all(:conditions => ['"first_year".year == ?', 2006], :include => :first_year)
%h2 Cette adhésion regroupe :
= link_to 'Ajouter', :url => new_person_path(:sheet_id => @sheet), :update => "new_sheet_people", :method => :get, :remote => true #if has_permission?('adherent.edit')
#new_sheet_people
#sheet_peoples
=render @sheet.people
%h2 Informations principales
= link_to 'Modifier', :url => edit_sheet_path(@sheet), :update => "sheet_detail", :method => :get, :remote => true #if has_permission?('adherent.edit')
#sheet_detail.sheet_block=render :partial => "sheet_detail"
%h2 Années d'adhésion
= link_to 'Ajouter', :url => new_sheet_year_path(:sheet_id => @sheet), :update => "new_sheet_year", :method => :get, :remote => true #if has_permission?('adherent.edit')
#new_sheet_year
#sheet_years
=render @sheet.sheet_years
%h2 Dons
= link_to 'Ajouter', :url => new_donate_path(:sheet_id => @sheet), :update => "new_donate", :method => :get, :remote => true #if has_permission?('adherent.edit')
#new_donate
#donates
=render @sheet.donates
%br
%br
%br
.links
= link_to 'Retour', sheets_path