Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -@pagetitle = "View Profile"
- =link_to "Edit This Profile", :action => :edit, :id => @person, :estate_id => @estate
- -if @person.respond_to?(:parent)|
- =link_to "View My Profile", "Back to parent", :action => :view, :id => @person.parent.id, :estate_id => @estate
- %table{:style => "width: 74%; border: 0 ; align: center; cellpadding: 0 ; cellspacing: 0"}
- %tr
- %td =link_to image_tag("administrator.gif"), :controller => 'profile', :action => 'admin'
- %td{ :width "25%" , :valign => "top" , :class => "p_description style21"} Title
- %td{ :width => "119%", :colspan => "3"
- =@person.title
- %br/
- %tr
- %td{ :valign => "top" :bgcolor => "#E2E2E2" :class => "p_description style21"} Initials
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.initial
- %br/
- %tr
- %td{ :valign => "top", :class => "p_description style21" } First Name
- %td{ :colspan => "3"} =@person.firstname
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} Middle Name
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.middlename
- %br/
- %tr
- %td{ :valign => "top" :class => "p_description style21"} Last Name
- %td{ :colspan => "3"} =@person.lastname
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} ID No
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.id_number
- %br/
- %tr
- %td{ :valign => "top", :class="p_description style21"} Date of Birth
- %td{ :colspan => "3"} =@person.date_of_birth
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} Telephone
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.telephone
- %br/
- %tr
- %td valign="top" class="p_description style21" Cellphone
- %td{ :colspan => "3"} =@person.cellphone
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} Fax
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.fax
- %br/
- %tr
- %td{ :valign => "top", :class="p_description style21"} Fax 2 Mail
- %td{ :colspan => "3"} =@person.fax_to_mail
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} Email
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.email
- %br/
- %tr
- %td{ :valign => "top", :class="p_description style21"} Postal Address1
- %td{ :colspan => "3"} =@person.postal1
- %br
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"} "Postal Address2
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.postal2
- %br/
- %tr
- %td{ :valign => "top", :class="p_description style21"} Postal Address3
- %td{ :colspan => "3"} =@person.postal3 %
- %br/
- %tr
- %td{ :valign => "top", :bgcolor => "#E2E2E2", :class => "p_description style21"}Postal Address4
- %td{ :colspan => "3", :bgcolor => "#E2E2E2"} =@person.postal4
- %br/
- %tr valign="top"
- %td{ :valign => "top", :class="p_description style21"} Comments
- %td{ :colspan => "3"} =@person.comments
- %tr
- %td{ :colspan => "4"} }
- -if @person.respond_to?(:stands)
- %tr{ :valign => "top"}
- %td{ :class => "p_description style21"} Stands
- %td
- -@person.stands.each do |stand|
- =link_to "stands", :controller = "stands", :action = :show, :id = stand.id, :estate_id = stand.estate.id
- %br/
- =link_to_function "Add Stand", " $('stands-form').show()"
- %div{ :id => "stands-form", :style => "display: none"}
- %form_tag :action => :link_to_stand, :id => @person, :estate_id => @estate_id do
- =collection_select "stand", "id", @stands, :id, :street_no
- %br/
- =submit_tag "Add"
- =button_to_function "Cancel", "$('stands-form').hide() "
- -if @person.is_a?(Resident) or (@person.is_a?(Owner) and @person.resident?)
- %tr{ :valign => "top"}
- %td{ :class => "p_description style21"} Dependents
- %td
- -@person.dependents.each do |dependent|
- =link_to dependent.presentation_name, :action = :view, :id = dependent, :estate_id = @estate_id
- %br/
- =link_to "Add dependent", :action = :new, :estate_id = @estate_id, :mode = 'dependent', :parent_id = @person
Add Comment
Please, Sign In to add comment