Sha256: 8568fc4a1888da73aed337e840e2d2a3c4179f03a9b87d878d77c4ccb85fc034

Contents?: true

Size: 1.85 KB

Versions: 105

Compression:

Stored size: 1.85 KB

Contents

- form_tag '/simple', :class => 'simple-form' do
  = error_messages_for nil
  - field_set_tag do
    = hidden_field_tag :session_id, :value => "__secret__"
    = label_tag :username
    = text_field_tag :username
    = label_tag :password
    = password_field_tag :password
    = label_tag  :color
    = select_tag :color, :options => ['green', 'orange', 'purple']
    = label_tag  :gender
    = radio_button_tag :gender, :value => 'male'
    = radio_button_tag :gender, :value => 'female'
    = check_box_tag :remember_me
    = submit_tag

- 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
    %p
      = label_tag :username, :class => 'first', :caption => "Nickname"
      = text_field_tag :username, :value => params[:username], :id => 'the_username'
    %p
      = label_tag :password, :class => 'first'
      = password_field_tag :password, :value => params[:password]
    %p
      = label_tag :about, :class => 'about', :caption => "About Me"
      = text_area_tag :about, :class => 'large'
    %p
      = label_tag :gender, :class => 'gender'
      = radio_button_tag :gender, :value => 'male', :checked => true
      = radio_button_tag :gender, :value => 'female'
    %p
      = label_tag :photo, :class => 'photo'
      = file_field_tag :photo, :class => 'upload'
    %p
      = label_tag :fav_color
      = select_tag :fav_color, :options => [ ['green', '1'], ['orange', '2'], ['purple', '3'] ], :selected => '2'
    %p
      = check_box_tag :remember_me, :value => "1", :checked => true
  - field_set_tag(:class => 'buttons') do
    = submit_tag "Login"
    = button_tag "Cancel"
    = image_submit_tag "buttons/submit.png"

Version data entries

105 entries across 105 versions & 5 rubygems

Version Path
padrino-fields-0.3.3 test/fixtures/datamapper/views/form_tag.haml
middleman-2.0.7 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/form_tag.haml
middleman-2.0.6 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/form_tag.haml
middleman-2.0.5 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.10.1 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.10.0 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.29 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.28 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.27 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.26 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.24 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.25 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.23 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.22 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.21 test/fixtures/markup_app/views/form_tag.haml
sinatra_more-0.3.43 test/fixtures/markup_app/views/form_tag.haml
sinatra_more-0.3.42 test/fixtures/markup_app/views/form_tag.haml
sinatra_more-0.3.41 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.20 test/fixtures/markup_app/views/form_tag.haml
padrino-helpers-0.9.19 test/fixtures/markup_app/views/form_tag.haml