<%-# Fedena
#Copyright 2010 Foradian Technologies Private Limited
#
#This product includes software developed at
#Project Fedena - http://www.projectfedena.org/
#
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
#Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied.  See the License for the
#specific language governing permissions and limitations
#under the License. -%>

<table width="700">
  <tr class="odd left"><td><%= t('home_address') %></td><td class="right"><%= @employee.home_address_line1 %>&nbsp;<%= @employee.home_address_line2 %></td></tr>
  <tr class="even left"><td><%= t('city') %></td><td class="right"><%= @employee.home_city %></td></tr>
  <tr class="odd left"><td><%= t('state') %></td><td class="right"><%= @employee.home_state %></td></tr>
  <tr class="even left"><td><%= t('country') %></td><td class="right"><%= @home_country %></td></tr>
  <tr class="odd left"><td><%= t('zip') %></td><td class="right"><%=  @employee.home_pin_code %></td></tr>
  <tr class="even left"><td><%= t('office_address') %></td><td class="right"><%=  @employee.office_address_line1 %>&nbsp;<%= @employee.office_address_line2 %></td></tr>
  <tr class="odd left"><td><%= t('city') %></td><td class="right"><%=  @employee.office_city %> </td></tr>
  <tr class="even left"><td><%= t('country') %></td><td class="right"><%=  @office_country %></td></tr>
  <tr class="odd left"><td><%= t('zip') %></td><td class="right"><%= @employee.office_pin_code %></td></tr>
</table>
<div class="extender"></div>
<div class="edit-pdf-group">
  <%if permitted_to? :edit2,:employee%>
    <div>
      <%= link_to "► #{t('edit_text')}",  {:controller => "employee", :action => "edit2", :id =>@employee.id}, :class=> 'user_button' %>
    </div>
  <%end%>
  <% if permitted_to?  :profile_pdf , :employee %>
  <div>
    <%= link_to " ► #{t('pdf_report')}",
      {:controller => "employee", :action => "profile_pdf", :id => @employee.id},:target => '_blank', :class=> 'user_button' %>
  </div>
  <% end %>
</div>