<%= render partial: 'edit_icon' %>

<%= t('profile.contact') %>

<% if @profile.contact_present? %> <% if @profile.phone? %>
<%= t('profile.phone') %>

<%= h @profile.phone %>

<% end %> <% if @profile.mobile? %>
<%= t('profile.mobile') %>

<%= h @profile.mobile %>

<% end %> <% if @profile.fax? %>
<%= t('profile.fax') %>

<%= h @profile.fax %>

<% end %> <% if @profile.address? %>
<%= t('profile.address') %>

<%= h @profile.address %>

<% end %> <% if @profile.website? %>
<%= t('profile.website') %>

<%= link_to @profile.website, @profile.website %>

<% end %> <% else %> <%= render partial: 'empty' %> <% end %>
<% if can? :update, @profile %>
<%= form_for(@profile, :url => [current_subject, :profile]) do |f| %>
<%= f.label :phone, t('profile.phone') %>
<%= f.phone_field :phone %>
<%= f.label :mobile, t('profile.mobile') %>
<%= f.phone_field :mobile %>
<%= f.label :fax, t('profile.fax') %>
<%= f.phone_field :fax %>
<%= f.label :address, t('profile.address') %>
<%= f.text_field :address %>
<%= f.label :email, t('profile.email') %>
<%= f.email_field :email, :class => "email" %>
<%= f.label :website, t('profile.website') %>
<%= f.text_field :website, :class => "url" %> <%= f.submit :class => "btn" %> <% end %>
<% end %>