The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
pretty_accessible_form

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Matt Williams

Posts: 24
Nickname: ottercat
Registered: May, 2007

Matt Williams is a subversive secretly replacing their java with ruby. Let's see if they notice.
pretty_accessible_form Posted: May 23, 2007 4:13 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Matt Williams.
Original Post: pretty_accessible_form
Feed Title: Subverting the Paradigm
Feed URL: http://subvertingtheparadigm.ottercat.net/feed/rss.xml
Feed Description: Which Paradigm? Pretty much all of them. It's about programming, exploring, management theory, development, and other radical notions. One day I'll talk about Ruby. The next day Rails. Javascript will be thrown in for good measure. Maybe even (gasp!) some Java. Thoughts about management style, too. A little bit of this, a little bit of that, all thrown together in a subversive attempt to change the world, but in a good way.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Matt Williams
Latest Posts From Subverting the Paradigm

Advertisement

I wanted to come up with something which was nice looking, but also pretty dry, and so pretty_accessible_form was born.

I wanted to come up with something which was nice looking, but also pretty dry, and so pretty_accessible_form was born.

It creates a form tag to implement A List Apart’s Prettier Accessible Forms.

You will need to include the stylesheet; you may consider using the stylesheet_plugin from http://ottercat.net/svn/stylesheet_include for this.

Sample Usage

1
2
3
4
5
6
7

 <% pa_form_for( :contact,:url => { :action => :contact_form }, :legend => "Contact Us") do |f| %>
    <%= f.text_field :name %>
    <%= f.text_field :email, :legend => "Email Address" %>
    <%= f.text_area :message, :legend => "Your Message" %>
    <%= f.submit "Contact Us" %>
  <% end %>

With the addition of RUZEE.shadedborder, it looks like this:

You can install it by typing:
script/plugin install http://ottercat.net/svn/plugins/trunk/pretty_accessible_form

Read: pretty_accessible_form

Topic: Hug Your Designer Day Previous Topic   Next Topic Topic: Dr Nic &raquo; Functional Testing using a Matrix to cover all edge cases [video]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use