<% settings = Setting.plugin_extended_profile %> <% projects = Project.visible.all(:order => 'name') %> <% profile = request.params[:company].nil? ? user.profile : request.params %>

<%= text_field_tag('profile[company]', profile[:company], :size => 30) %>

<%= text_field_tag('profile[company_site]', profile[:company_site].present? ? profile[:company_site] : 'http://', :size => 30, :class => profile[:company_site].present? ? nil : 'empty', :onfocus => "if (this.value == 'http://') { this.value = ''; this.className = ''; }") %>

<%= text_field_tag('profile[position]', profile[:position], :size => 30) %>

<%= select_tag('profile[project_id]', (settings[:require_project] && ((!user.identity_url && !session[:auth_source_registration]) || profile[:project_id].present?) ? '' : content_tag(:option)) + options_from_collection_for_select(projects, :id, :name, profile[:project_id])) %>

<%= text_field_tag('profile[personal_site]', profile[:personal_site].present? ? profile[:personal_site] : 'http://', :size => 30, :class => profile[:personal_site].present? ? nil : 'empty', :onfocus => "if (this.value == 'http://') { this.value = ''; this.className = ''; }") %>

<%= text_field_tag('profile[blog]', profile[:blog].present? ? profile[:blog] : 'http://', :size => 30, :class => profile[:blog].present? ? nil : 'empty', :onfocus => "if (this.value == 'http://') { this.value = ''; this.className = ''; }") %>

<%= text_field_tag('profile[facebook]', profile[:facebook], :size => 30) %>
<%= l(:sample_facebook_profile_id) %>

<%= text_field_tag('profile[twitter]', profile[:twitter], :size => 30) %>
<%= l(:sample_twitter_username) %>

<%= text_field_tag('profile[linkedin]', profile[:linkedin].present? ? profile[:linkedin] : 'http://', :size => 30, :class => profile[:linkedin].present? ? nil : 'empty', :onfocus => "if (this.value == 'http://') { this.value = ''; this.className = ''; }") %>