Created
November 7, 2012 13:22
-
-
Save vagnerzampieri/4031550 to your computer and use it in GitHub Desktop.
JS de Employee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h3 | |
= t("headers.employee.identification") | |
%actions | |
= link_to image_tag('edit.png'), edit_employee_tab_path(@employee, :documents), remote: true, title: t(:'actions.edit') | |
%dl | |
= data_item @employee, :id_number | |
.photo{id: 'rg', style: "display:none;"}= link_img_id_attachment if @employee.id_attachment_url | |
%br | |
= data_item @employee, :id_issuing_agency | |
= data_item @employee, :functional_id | |
= data_item @employee, :ssn_number | |
.photo= link_img_ssn_attachment if @employee.ssn_attachment_url | |
= data_item @employee, :passport_number | |
.photo= link_img_passport_attachment if @employee.passport_attachment_url | |
= data_item @employee, :sip_number | |
%h3= t("headers.employee.bank") | |
%dl | |
= data_item @employee, :bank_code | |
= data_item @employee, :bank_branch | |
= data_item @employee, :bank_account_number | |
%h3= t("headers.employee.voting") | |
%dl | |
= data_item @employee, :vrc_number | |
= data_item @employee, :vrc_zone | |
= data_item @employee, :vrc_section | |
.photo= link_img_vrc_section if @employee.vrc_attachment_url | |
%h3= t("headers.employee.driver_license") | |
%dl | |
= data_item @employee, :driver_license_number | |
.photo= link_img_driver_license_number if @employee.driver_license_attachment_url | |
= data_item @employee, :driver_license_categories, @employee.driver_license_categories | |
= data_item @employee, :driver_license_expires_at, l(@employee.driver_license_expires_at) if @employee.driver_license_expires_at | |
= data_item @employee, :company_driver_license_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('dt').toggle -> | |
$('.photo#rg').show('slow') | |
, -> | |
$('.photo#rg').hide('slow') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment