Sha256: 6d2a7172cb393e0aa16303a54b43a88db01da1731f3ac86cf2b2618f3dd6615c

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

= styled_inputs

+styled_inputs+ adds automated styling of input fields with css classes.

== Resources

Wiki

* http://wiki.pluginaweek.org/Styled_inputs

API

* http://api.pluginaweek.org/styled_inputs

Development

* http://dev.pluginaweek.org/browser/trunk/styled_inputs

Source

* http://svn.pluginaweek.org/trunk/styled_inputs

== Description

Normally, it is difficult to style inputs without adding classes to them so
that you can specify css for each type of input.  Since this can become a
tedious manual task, styled_inputs automatically adds a classes to each
input that is generated either by tag or form helpers.  The class that is
specified is the type of input being generated.

== Usage

=== Tags

  text_field_tag('name')    # => <input class="text" id="name" name="name" type="text" />
  hidden_field_tag('name')  # => <input class="hidden" id="name" name="name" type="hidden" />

=== Form helpers

  text_field(:person, :name)    # => <input class="text" id="person_name" name="person[name]" size="30" type="text" />
  hidden_field(:person, :name)  # => <input class="hidden" id="person_name" name="person[name]" type="hidden" />

== Dependencies

* Rails 2.0 or later

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
styled_inputs-0.0.5 README
styled_inputs-0.0.4 README