Sha256: e75f6362464634f9d2918f749e7418704649e0c16e6492f6afea62a362d73f2c

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 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
    = 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 :photo, :class => 'photo'
      = file_field_tag :photo, :class => 'upload'
  - field_set_tag(:class => 'buttons') do
    = submit_tag "Login"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra_more-0.1.10 test/fixtures/markup_app/views/form_tag.haml