Profile: <%= h @user.username %>

<%= form_for @user, :html => { :multipart => true } do |f| %> <% f.fields_for :profile do |p| %>
<% if @user.errors.any? %>

<%= pluralize(@user.errors.count, t(:error)) %>

    <% @user.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
<% end %>

<%= f.label :username, 'Username', :class => 'required' %>
<%= f.text_field :username %>

<%= f.label :raw_password, "Password" %>
<%= f.password_field :raw_password %>

<%= f.label :firstname %> (only available to members)
<%= f.text_field :firstname %>

<%= f.label :lastname %> (only available to members)
<%= f.text_field :lastname %>

<%= f.label :steamid %>
<%= f.text_field :steamid %>

<%= f.label :birthdate %>
<%= date_select :user, :birthdate, :order => [:year, :month, :day], :default => @user.birthdate, :start_year => 1950 %>

<%= f.label :email %> (only available to admins)
<%= f.text_field :email %>

<%= f.label :public_email %>
<%= f.check_box :public_email %>

<%= p.label :steam_profile, "Link to your Steam Profile" %>
<%= p.text_field :steam_profile %>

<%= p.label :irc %>
<%= p.text_field :irc %>

<%= p.label :msn %>
<%= p.text_field :msn %>

<%= p.label :icq %>
<%= p.text_field :icq %>

<%= p.label :web %>
<%= p.text_field :web %>

<%= f.label :country %>
<%= country_code_select :user, :country %>

<%= p.label :town %>
<%= p.text_field :town %>

<%= f.label :time_zone %>
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.all %>
Daylight savings will be observed automatically.

<%= p.label :singleplayer %>
<%= p.text_field :singleplayer %>

<%= p.label :multiplayer %>
<%= p.text_field :multiplayer %>

<%= p.label :food %>
<%= p.text_field :food %>

<%= p.label :beverage %>
<%= p.text_field :beverage %>

<%= p.label :hobby %>
<%= p.text_field :hobby %>

<%= p.label :music %>
<%= p.text_field :music %>

<%= p.label :book %>
<%= p.text_field :book %>

<%= p.label :movie %>
<%= p.text_field :movie %>

<%= p.label :tvseries %>
<%= p.text_field :tvseries %>

<%= p.label :res %>
<%= p.text_field :res %>

<%= p.label :sensitivity %>
<%= p.text_field :sensitivity %>

<%= p.label :monitor_hz %>
<%= p.text_field :monitor_hz %>

<%= p.label :scripts %>
<%= p.text_field :scripts %>

<%= p.label :cpu %>
<%= p.text_field :cpu %>

<%= p.label :gpu %>
<%= p.text_field :gpu %>

<%= p.label :ram %>
<%= p.text_field :ram %>

<%= p.label :psu %>
<%= p.text_field :psu %>

<%= p.label :motherboard %>
<%= p.text_field :motherboard %>

<%= p.label :soundcard %>
<%= p.text_field :soundcard %>

<%= p.label :hdd %>
<%= p.text_field :hdd %>

<%= p.label :case %>
<%= p.text_field :case %>

<%= p.label :monitor %>
<%= p.text_field :monitor %>

<%= p.label :mouse %>
<%= p.text_field :mouse %>

<%= p.label :mouse_pad %>
<%= p.text_field :mouse_pad %>

<%= p.label :keyboard %>
<%= p.text_field :keyboard %>

<%= p.label :head_phones %>
<%= p.text_field :head_phones %>

<%= p.label :speakers %>
<%= p.text_field :speakers %>

<%= p.label :achievements %>
<%= p.text_area :achievements %>

<%= p.label :signature %>
<%= p.text_area :signature, :rows => 5, :cols => 50 %>


<%= p.file_field :avatar %>

<%= p.label :notify_news, "Notify me when news are posted" %>
<%= p.check_box :notify_news %>

<%= p.label :notify_articles, "Notify me of new articles" %>
<%= p.check_box :notify_articles %>

<%= p.label :notify_movies, "Notify me of new movies" %>
<%= p.check_box :notify_movies %>

<%= p.label :notify_gather, "Notify me when gather has 6 players" %>
<%= p.check_box :notify_gather %>

<%= p.label :notify_own_match, "Notify me of my team's matches" %>
<%= p.check_box :notify_own_match %>

<%= p.label :notify_any_match, "Notify me of any new match" %>
<%= p.check_box :notify_any_match %>

<%= p.label :notify_challenge, "Notify me of new challenges" %>
<%= p.check_box :notify_challenge %>

<%= p.label :notify_pms, "Notify me of private messages" %>
<%= p.check_box :notify_pms %>

<%= f.submit %>

<% end %> <% end %>