Sha256: cb1f01c8aceea1c5de1627641ebbc31a4059021adfbe4bba4ea7a8ed6898fa57
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
- form_for MarkupUser.new, '/demo', :id => 'demo' do |f| = f.error_messages(:header_message => "custom MarkupUser cannot be saved!") = f.hidden_field :session_id %p = f.label :username, :caption => "Login", :class => 'user-label' = f.text_field :username, :class => 'user-text', :value => "John" %p = f.label :email, :caption => "Email", :class => 'user-email' = f.text_field :email %p = f.label :password = f.password_field :password, :class => 'user-password', :value => "secret" %p = f.label :photo = f.file_field :photo, :class => 'user-photo' %p = f.label :about, :caption => "About Me" = f.text_area :about, :class => 'user-about' %p = f.label :gender, :caption => "Your gender:" = f.radio_button :gender, :value => 'male' = f.radio_button :gender, :value => 'female' %p = f.check_box :remember_me, :value => "1" %p = f.submit "Create", :class => 'success', :id => 'demo-button' %p = f.image_submit "buttons/post.png", :class => 'success', :id => 'image-button' - form_for MarkupUser.new, '/another_demo', :id => 'demo2', :method => 'get' do |f| = f.error_messages :header_message => "custom MarkupUser cannot be saved!" = f.hidden_field :session_id = f.text_field_block :username, { :class => 'input' }, { :caption => 'Nickname', :class => 'label' } = f.password_field_block :code, { :class => 'input' } = f.text_area_block :about, { :class => 'textarea' } = f.file_field_block :photo, { :class => 'upload' } = f.submit_block "Create", { :class => 'button' } = f.image_submit_block "buttons/ok.png", { :class => 'image' }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra_more-0.2.2 | test/fixtures/markup_app/views/form_for.haml |
sinatra_more-0.2.1 | test/fixtures/markup_app/views/form_for.haml |