pic_vert_app/app/views/sheets/show.html.haml

57 lines
979 B
Plaintext

#sheet_show
.links{:style => "float:right;"}
= link_to 'Modifier', edit_sheet_path(@sheet), :method => :get, :remote => true
= link_to 'Fermer', "#", :onclick => "$('#sheet_show').remove();return false;"
%h1
Fiche n°
=@sheet.id
Adhérent depuis
=@sheet.first_year
="/"
=@sheet.last_year
-if @sheet.plume
%p{:style => "background:red;"} Souhaite recevoir la plume par courrier.
%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
#sheet_detail.sheet_block=render :partial => "sheet_detail"
%h2 Années d'adhésion
#new_sheet_years
#sheet_years
=render @sheet.sheet_years
%h2 Dons
#new_donates
#donates
=render @sheet.donates
%br
%br
%br
.links
= link_to 'Retour', sheets_path