<%= content_for :javascript do%> <%= render :partial => 'logos/crop_logo.js.erb', :locals => { :form_id => 'form_update_avatar', :url_form => precrop_user_avatar_path(@profile.user), :container_id => 'for_lightbox', :aspect_ratio => Avatar::ASPECT_RATIO_S } %> $("#change_pic").click(function(){ $("#update_logo").show() }); $("#vcard_use").click(function(){ $("#upload_vcard").show() }); $("#update_logo .close_pic").click(function(){ $("#update_logo").hide() }); $("#upload_vcard .close_vcard").click(function(){ $("#upload_vcard").hide() }); $("#vcard_export").click(function(){ window.location.href = "<%= user_profile_path(@user,:format => "vcf") %>"; }); $('#upload_vcard img.tooltip_vcard').qtip({ content: '<%= escape_javascript(t("tooltip.vcard")) %>', show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <% end %> <%= content_for :headers do%> <%= javascript_include_tag 'jquery.filestyle','jquery.jcrop' %> <%end%> <%= content_for :header do%>

<%=t('edit_your_profile')%>

<%end%> <%= content_for :sidebar do %>
<%if @profile.logo%> <%else%> <%end%>
<% end %> <% flash.each do |name, msg| %>
<%= msg.html_safe %>
<% end %> <%= error_messages_for :profile %> <%= form_for @profile, :url => user_profile_path(@user) , :html => { :multipart => true } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %>
<%= link_to ("" + t('cancel') + "").html_safe, user_profile_path(@user),:class => "basic_button blue_button", :id=>"cancel_profile"%>
<% end %>