% form_tag '/simple', :class => 'simple-form' do %> <%= hidden_field_tag :session_id, :value => "__secret__" %> <% field_set_tag do %> <%= label_tag :username %> <%= text_field_tag :username %> <%= label_tag :password %> <%= password_field_tag :password %> <%= check_box_tag :remember_me %> <%= label_tag :gender %> <%= label_tag :color %> <%= select_tag :color, :options => ['green', 'orange', 'purple'] %> <%= radio_button_tag :gender, :value => 'male' %> <%= radio_button_tag :gender, :value => 'female' %> <%= submit_tag %> <% end %> <% end %> <% form_tag '/advanced', :id => 'advanced', :class => 'advanced-form', :method => 'get' do %> <%= error_messages_for MarkupUser.new, :header_message => "There are problems with saving user!" %> <%= hidden_field_tag :session_id, :value => "__secret__" %> <% field_set_tag "Advanced", :class => 'advanced-field-set' do %>
<%= label_tag :username, :class => 'first', :caption => "Nickname" %> <%= text_field_tag :username, :value => params[:username], :id => 'the_username' %>
<%= label_tag :password, :class => 'first' %> <%= password_field_tag :password, :value => params[:password] %>
<%= label_tag :about, :class => 'about', :caption => "About Me" %> <%= text_area_tag :about, :class => 'large' %>
<%= label_tag :photo, :class => 'photo' %> <%= file_field_tag :photo, :class => 'upload' %>
<%= label_tag :gender, :class => 'gender' %> <%= radio_button_tag :gender, :value => 'male', :checked => true %> <%= radio_button_tag :remember_me, :value => 'female' %>
<%= label_tag :fav_color %> <%= select_tag :fav_color, :options => [ ['green', '1'], ['orange', '2'], ['purple', '3'] ], :selected => '2' %>
<%= check_box_tag :remember_me, :value => '1', :checked => true %>
<% end %> <% field_set_tag(:class => 'buttons') do %> <%= submit_tag "Login" %> <%= button_tag "Cancel" %> <%= image_submit_tag "buttons/submit.png" %> <% end %> <% end %>