<% prefix_select = f.select :prefix_key, [[t('title_formal.mr'), 'title_formal.mr'], [t('title_formal.mrs'), 'title_formal.mrs'], [t('title_formal.ms'), 'title_formal.ms'], [t("other"), "other"]] %> <% prefix_input = "
#{f.text_field :prefix_key} #{link_to 'suggest','javascript:suggest_prefix()'}
".html_safe %> <%= content_for :javascript do %> $("#profile_prefix_key").livequery("change",function(){ if ($("#profile_prefix_key option:selected").attr("value")== "other"){ $(this).replaceWith("<%=escape_javascript(prefix_input)%>"); } }); suggest_prefix = function(){ $(".switch_js").replaceWith("<%=escape_javascript(prefix_select)%>") }; $('#edit_public_profile img.tooltip_public_profile').qtip({ content: '<%= escape_javascript(t("tooltip.public_profile")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('#edit_private_profile img.tooltip_private_profile').qtip({ content: '<%= escape_javascript(t("tooltip.private_profile")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <%end%>

<%= t('profile.public') %> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_public_profile icon",:style=>"cursor:pointer")%>

<%= t('personal_information') %>

<%if @profile.prefix_key.include?("title_formal.") || @profile.prefix_key == "" %> <%= prefix_select%> <%else%> <%=prefix_input%> <%end%>
<%= f.text_field :full_name %>
<%= f.text_field :organization %>
<%= f.text_field :city %>
<%= f.text_field :province %>
<%= f.text_field :country %>

<%= t('description') %>

<%= f.text_area :description, :size => "34x7" %>

<%= t('url') %>

<%= f.text_field :url%>

<%= t('profile.private') %> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_private_profile icon",:style=>"cursor:pointer")%>

<%= t('privacy') + ": " + t('profile.visibility_edit')%>

<% for vis_symbol in Profile::VISIBILITY do %>
<%= f.radio_button :visibility, Profile::VISIBILITY.index(vis_symbol)%>
<% end%>

<%= t('address') %>

<%= f.text_field :address %>
<%= f.text_field :zipcode%>

<%= t('contact_information') %>

<%= t('internet.on_the') %>

<%= f.fields_for :user do |user_form| %>
<%= user_form.label :email, t('email.one') %> <%= user_form.text_field :email %>
<% end %>
<%= f.text_field :skype %>
<%= f.text_field :im %>

<%= t('phone.plural') %>

<%= f.text_field :phone %>
<%= f.text_field :mobile %>
<%= f.text_field :fax%>