public
Fork of shift/accessible_form_builder
Description: Major refactoring, blueprint support, bare_ accessors to original methods.
Homepage: http://voidcontext.lighthouseapp.com/projects/9016-grid_forms/
Clone URL: git://github.com/jlindley/accessible_form_builder.git
jlindley (author)
Tue Mar 25 17:05:12 -0700 2008
commit  7e86aa0c64d4089bd2a1d841c282a182906013c1
tree    ad1016a7a5f6d296f86e4481280e73d8a1e9473f
parent  192e32fdeaa9fae35cb38d2abf675b1a167897c6
name age message
file README Thu Apr 10 13:02:39 -0700 2008 Added note about form width to README [jlindley]
file Rakefile Thu Mar 27 16:29:43 -0700 2008 Refactoring and blueprint support. [jlindley]
file init.rb Sun Nov 16 08:39:31 -0800 2008 Rake task to update css/js files. [jlindley]
file install.rb Thu Mar 27 16:29:43 -0700 2008 Refactoring and blueprint support. [jlindley]
directory lib/ Sun Nov 16 10:38:21 -0800 2008 Fixed param list for af_fields_for [jlindley]
directory public/ Tue Apr 08 11:35:41 -0700 2008 Added additional margin to fieldset tags via css. [jlindley]
directory tasks/ Sun Nov 16 08:43:29 -0800 2008 Add option for select to break to next line. [jlindley]
directory test/ Sun Mar 09 16:01:36 -0700 2008 Inital git import. [shift]
file uninstall.rb Sun Nov 16 08:40:18 -0800 2008 Add uninstall hook text. [jlindley]
README
AccesibleFormBuilder
===================

This plugin is based upon pretty_accessible_form from 
http://machinesmonstersandmadness.com/svn/plugins/trunk/pretty_accessible_form

== Installation

git clone git://github.com/shift/accessible_form_builder.git vendor/plugins/accessible_form_builder

== Usage

Here's an example usage:
  <% a_form_for :user, :url => users_path, :legend => "Login Details" do |f| %>
    <%= f.text_field :login, :label => "Username", :note => "This is visible to other users", :required => true %>
    <%= f.password_field :password, :label => "Password", :required => true %>
    <%= f.password_field :password_confirmation, :label => "Confirm Password", :required => true %>
    <%= f.separator "Personal Details" %>
    <%= f.text_field :firstname, :label => "First name", :required => true %>
    <%= f.text_field :lastname, :label => "Last name", :required => true %>
    <%= f.text_field :email, :label => "E-Mail", :required => true %>
    <%= f.separator "Location Details" %>
    <%= f.text_field :address, :label => "Location", :note => "(eg. New York, 90210, SE1 3SR)", :required => true %>
    <%= f.submit "Sign up" %>
  <% end %>

== Credits

Original idea from A List Aparts "Prettier Accessible Forms"
http://alistapart.com/articles/prettyaccessibleforms

Rails implementation of pretty_accessible_form is copyright 2007, 2008 by Matt Williams 
http://machinesmonstersandmadness.com/svn/plugins/trunk/pretty_accessible_form

Fixing of :required, validating markup and :note by Vincent Palmer 2008.
For more information contact "shiftEMAILrwvhp.com".gsub!('EMAIL', '@').

== License
This is covered under a MIT License.