<%= content_for :search do %> <%= render :partial => 'search/form' %> <%end%> <%= content_for :javascript do%> $('#timezone img.tooltip_timezone').qtip({ content: '<%= escape_javascript(t("tooltip.timezone")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <% end %> <%= error_messages_for 'user' %>

<%= t('user.edit_account')%>

<%= form_for user, :url => user_path(user.login_changed? ? user.login_was : user), :html => {:method => :put} do |f| -%> <%= render :partial => 'form' , :locals => { :f => f } %>
<% end -%>

<%= t('preferences')%>

<%= form_for :user, :url => user_path(@user), :html => {:method => :put} do |f| -%>

<%= f.time_zone_select :timezone, nil, :include_blank => true%>

<%=t("post.show_expanded_pref")%>
<%= f.check_box :expanded_post, {}, true,false %>

<%= t('user.notifications')%>
<%= f.radio_button :notification, User::NOTIFICATION_VIA_EMAIL %> <%=t('user.by_email')%> <%= f.radio_button :notification, User::NOTIFICATION_VIA_PM %> <%=t('user.by_private_message')%>

<%= t('user.receive_digest.description')%>
<%= f.radio_button :receive_digest, User::RECEIVE_DIGEST_NEVER %> <%=t('user.receive_digest.never') %> <%= f.radio_button :receive_digest, User::RECEIVE_DIGEST_DAILY %> <%=t('user.receive_digest.daily') %> <%= f.radio_button :receive_digest, User::RECEIVE_DIGEST_WEEKLY %> <%=t('user.receive_digest.weekly') %>

<% if logged_in? && current_user.superuser==true && @user.id != current_user.id %>

<%= f.check_box :superuser %>

<% end -%> <% end -%>