<%= link_to l(:button_add), {}, :onclick => "$('#add_attachment_form').show(); $('#add_attachment_link').hide(); return false;", :class => 'icon icon-add', :id => 'add_attachment_link' if User.current.allowed_people_to?(:edit_people, @person) %>
<%= labelled_form_for :person, @person,
:url => {:action => 'update', :id => @person},
:html => { :multipart => true, :method => :put, :id => "add_attachment_form", :style => "display:none;" } do |f| %>
<% end -%>
<%= render :partial => 'attachments/links', :locals => {:attachments => @person_attachments, :options => {:author => true, :deletable => :true}, :thumbnails => Setting.thumbnails_enabled?} %>