Accessible Form Builder plugin

Plugin details

Another plugin complements AListApart "Prettier Accessible Forms", and based on pretty_accessible_form from http://machinesmonstersandmadness.com/svn/plugins/trunk/pretty_accessible_form

Websitehttp://rwvhp.com/2008/3/9/accessibleformbuilder-usage-and-example Repositorygit://github.com/shift/accessible_form_builder.git vendor/plugins/accessible_form_builder Author James Lindley Tags form LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install 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 %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 3 days ago