<% if @profile.personal_present? %>
<% if @profile.organization? %>
<%= t('profile.organization') %>
<%= h @profile.organization %>
<% end %>
<% if @profile.birthday? %>
<%= t("profile.#{ @profile.subject.class.to_s.downcase }.birthday") %>:
<%= h l(@profile.birthday, :format => :long) %>
<% if @profile.subject.is_a?(User) %>
<%= t('profile.age') %>:
<%= h @profile.age %>
<% end %>
<% end %>
<% if @profile.city? %>
<%= t('profile.actualcity') %>:
<%= h @profile.city %>
<% if @profile.country? %>
, <%= @profile.country %>
<% end %>
<% end %>
<% if @profile.description? %>
<%= t("profile.#{ @profile.subject.class.to_s.downcase }.about") %>:
<%= simple_format @profile.description %>
<% end %>
<% else %>
<%= render partial: 'empty' %>
<% end %>
<% if can? :update, @profile %>
<%= form_for(@profile, :url => [current_subject, :profile]) do |f| %>
*
<%= f.label t('*actor.name') %>
<%= f.text_field :name, :class => "required" %>
<%= f.label :organization, t('profile.organization') %>
<%= f.text_field :organization %>
<%= f.label :birthday, t('profile.' + current_subject.class.to_s.downcase + '.birthday') %>
<%= date_select "profile", "birthday", :order => [:day, :month, :year], :end_year => Date.today.year, :start_year => (Date.today.year - 100), :prompt => {:day => 'Day', :month => 'Month', :year => 'Year'} %>
<%= f.label :city, t('profile.actualcity') %>
<%= f.text_field :city %>
<%= f.label :country, t('profile.country') %>
<%= f.text_field :country %>
<%= f.label :description, t("profile.#{ current_subject.class.to_s.downcase }.about") %>
<%= f.text_area :description, :maxlength => 200, :rows => 10 %>
<%= t('required') %>
<%= f.submit :class => "btn" %>
<% end %>
<% end %>