% settings = Setting.plugin_extended_profile %> <% projects = Project.all(:conditions => Project.allowed_to_condition(user, :view_project), :order => 'name') %>
<%= text_field_tag('profile[company]', user.profile[:company], :size => 30) %>
<%= text_field_tag('profile[company_site]', user.profile[:company_site], :size => 30) %>
<%= text_field_tag('profile[position]', user.profile[:position], :size => 30) %>
<%= select_tag('profile[project_id]', (settings[:require_project] && ((!user.identity_url && !session[:auth_source_registration]) || user.profile[:project_id].present?) ? '' : content_tag(:option)) + options_from_collection_for_select(projects, :id, :name, user.profile[:project_id])) %>
<%= text_field_tag('profile[personal_site]', user.profile[:personal_site], :size => 30) %>
<%= text_field_tag('profile[blog]', user.profile[:blog], :size => 30) %>
<%= text_field_tag('profile[facebook]', user.profile[:facebook], :size => 30) %>
<%= text_field_tag('profile[twitter]', user.profile[:twitter], :size => 30) %>
<%= text_field_tag('profile[linkedin]', user.profile[:linkedin], :size => 30) %>